diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b11c4a45d75b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Ricardo Liang <ricardoliang at gmail dot com> +pkgname=gnome-shell-extension-window-animations-git +pkgver=r16.be678c7 +pkgrel=1 +pkgdesc='Adds task icons grouped by workspace to the panel.' +arch=('any') +url="https://github.com/rliang/gnome-shell-extension-window-animations" +license=('MIT') +depends=('gnome-shell') +makedepends=('git') +optdepends=() +conflicts=('gnome-shell-extension-window-animations') +source=("${pkgname}::git+${url}.git") +md5sums=('SKIP') + +pkgver() { + cd "${pkgname}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + cd "${pkgname}" + + local _extname="$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)" + + install -Dm644 -t "${pkgdir}/usr/share/gnome-shell/extensions/${_extname}" *.js *.json gschemas.compiled + install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE +} |