-
-
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.
Update github notification extension package
- Loading branch information
Showing
3 changed files
with
45 additions
and
37 deletions.
There are no files selected for viewing
37 changes: 0 additions & 37 deletions
37
members/gnome-shell-extension-github-notifications-pr52/PKGBUILD
This file was deleted.
Oops, something went wrong.
File renamed without changes.
45 changes: 45 additions & 0 deletions
45
members/gnome-shell-extension-github-notifications/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,45 @@ | ||
# Maintainer: Hoàng Văn Khải <[email protected]> | ||
|
||
pkgname='gnome-shell-extension-github-notifications-gnome45' | ||
pkgdesc='GNOME GitHub Notifications extension with patch that supports GNOME Shell 45' | ||
_commit='458eff083bb5434fb5e2b7e246c5a9a0632a6501' | ||
pkgver='2024.02.29' | ||
pkgrel='1' | ||
arch=('x86_64') | ||
_repo='https://github.com/KSXGitHub/gnome-shell-extension-github-notifications' | ||
url='https://github.com/KSXGitHub/gnome-shell-extension-github-notifications' | ||
license=('GPL-2.0') | ||
conflicts=('gnome-shell-extension-github-notifications' 'gnome-shell-extension-github-notifications-pr52') | ||
replaces=('gnome-shell-extension-github-notifications-pr52') | ||
provides=('gnome-shell-extension-github-notifications') | ||
optdepends=( | ||
'gnome-shell>=45' | ||
'gjs: GNOME Shell use GJS to run its extensions' | ||
) | ||
makedepends=( | ||
'coreutils' | ||
'just' | ||
'cargo' | ||
'nodejs' | ||
'jq' | ||
'upx' | ||
) | ||
source=( | ||
"$_repo/archive/$_commit.zip" | ||
) | ||
sha512sums=( | ||
'SKIP' | ||
) | ||
|
||
package() { | ||
cd "$srcdir/gnome-shell-extension-github-notifications-$_commit" | ||
just build | ||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" | ||
local parent="$pkgdir/usr/share/gnome-shell/extensions" | ||
mkdir -p "$parent" | ||
local uuid=$(jq -r .uuid < assets/metadata.json) | ||
dest="$parent/$uuid" | ||
rm -rf "$dest" | ||
cp -r dist "$dest" | ||
} |