diff options
author | Jianfeng Zhang | 2019-09-04 16:53:14 -0700 |
---|---|---|
committer | Jianfeng Zhang | 2019-09-04 16:53:14 -0700 |
commit | 8369258d324cd268b9536641ea2861114bc57c3d (patch) | |
tree | 0adf125b363ef60a22a0573684d787beb31b4332 /PKGBUILD | |
download | aur-gnome-shell-extension-topicons-redux-git.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b551d33600a3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Jianfeng Zhang <swordfeng123@gmail.com> + +pkgname=gnome-shell-extension-topicons-redux-git +_projectName=TopIcons-Redux +pkgver=6+0+g5008e48 +pkgrel=1 +pkgdesc='TopIcons Redux is a fork of TopIcons Plus' +arch=('any') +url="https://gitlab.com/pop-planet/${_projectName}" +license=('GPL') +depends=('gnome-shell') +makedepends=('git') +provides=('gnome-shell-extension-topicons-redux') +conflicts=('gnome-shell-extension-topicons-redux') +groups=('gnome-shell-extensions') +source=("git+https://gitlab.com/pop-planet/${_projectName}.git") +sha256sums=('SKIP') + +pkgver() { + cd "${_projectName}" + git describe --tags --long | sed 's/^v//; s/-/+/g' +} + +build() { + cd "${_projectName}" + make build +} + +package() { + cd "${_projectName}" + local uuid=$(grep -Po '(?<="uuid": ")[^"]*' _build/metadata.json) + local destdir="$pkgdir/usr/share/gnome-shell/extensions/$uuid" + install -dm755 "$destdir" + cp -r _build/* "$destdir" +} |