forked from rafaelmardojai/firefox-gnome-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
5 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish_aur_package: | ||
name: Publish AUR package | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Generate PKGBUILD | ||
env: | ||
RELEASE: ${{ github.event.release.tag_name }} | ||
run: ./scripts/generate-pkgbuild.sh | ||
|
||
- name: Publish firefox-gnome-theme to the AUR | ||
uses: KSXGitHub/[email protected] | ||
with: | ||
pkgname: firefox-gnome-theme | ||
pkgbuild: ./PKGBUILD | ||
commit_username: ${{ secrets.AUR_USERNAME }} | ||
commit_email: ${{ secrets.AUR_EMAIL }} | ||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | ||
commit_message: ${{ github.event.release.tag_name }} | ||
updpkgsums: true | ||
test: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#customChrome.css | ||
#customContent.css | ||
PKGBUILD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
|
||
# Exit on error | ||
set -e | ||
|
||
if [ -z "$RELEASE" ]; then | ||
echo "\$RELEASE not set, aborting" | ||
exit 1 | ||
fi | ||
|
||
pkgver=$(echo "$RELEASE" | sed 's/v//') | ||
|
||
cat << EOF > ./PKGBUILD | ||
# Maintainer: Marko Korhonen <[email protected]> | ||
# Based on the existing AUR package firefox-gnome-theme-git | ||
# This PKGBUILD is automatically generated by https://github.com/rafaelmardojai/firefox-gnome-theme/blob/$RELEASE/scripts/generate-pkgbuild.sh | ||
# when a release is published on GitHub. Do not edit this file directly. | ||
pkgname=firefox-gnome-theme | ||
pkgver=$pkgver | ||
pkgrel=1 | ||
pkgdesc='A GNOME theme for Firefox' | ||
arch=('any') | ||
url="https://github.com/rafaelmardojai/\$pkgname" | ||
license=('Unlicense') | ||
optdepends=('firefox: primary compatible browser' 'librewolf: alternative compatible browser') | ||
conflicts=("\$pkgname-git") | ||
install="\$pkgname.install" | ||
source=("\$pkgname-\$pkgver.tar.gz::https://github.com/rafaelmardojai/\$pkgname/archive/refs/tags/v\$pkgver.tar.gz" "INSTALL.md") | ||
md5sums=('TO_BE_GENERATED' | ||
'25f18456221ffc91f472b1abff8aae84') | ||
package() { | ||
cd "\$srcdir/\$pkgname-\$pkgver" | ||
install -d "\$pkgdir/usr/lib/\$pkgname" | ||
cp -ra theme userChrome.css userContent.css configuration "\$pkgdir/usr/lib/\$pkgname" | ||
# Install docs | ||
install -Dm644 README.md "\$pkgdir/usr/share/doc/\$pkgname/README.md" | ||
install -Dm644 "\$srcdir/INSTALL.md" "\$pkgdir/usr/share/doc/\$pkgname/INSTALL.md" | ||
} | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters