diff options
author | Igor Dyatlov | 2022-08-03 17:31:31 +0300 |
---|---|---|
committer | Igor Dyatlov | 2022-08-03 17:31:31 +0300 |
commit | e01c3070b0b7ce6b21b712b81f0858d4287203cb (patch) | |
tree | b4fd03df53bd3abd7e18a612c5b33055250b0b51 /PKGBUILD | |
download | aur-e01c3070b0b7ce6b21b712b81f0858d4287203cb.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f1777d0a3a44 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com> + +pkgname=gnome-shell-extension-rounded-window-corners-git +_pkgname=rounded-window-corners +pkgver=r62.59b903b +pkgrel=1 +pkgdesc="A gnome-shell extensions that try to add rounded corners for all windows" +arch=('any') +url="https://github.com/yilozt/rounded-window-corners" +license=('GPL3') +depends=('gnome-shell') +makedepends=('git' 'yarn' 'zip') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=(git+$url.git) +b2sums=('SKIP') + +pkgver() { + cd "${_pkgname%-git}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "${_pkgname%-git}" + + yarn install + yarn build +} + +package() { + cd "${_pkgname%-git}"/_build + glib-compile-schemas schemas + gnome-extensions pack \ + --force \ + --extra-source="dbus" \ + --extra-source="effect" \ + --extra-source="manager" \ + --extra-source="preferences" \ + --extra-source="schemas" \ + --extra-source="utils" + + local uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json) + install -d "$pkgdir/usr/share/gnome-shell/extensions/${uuid}" + bsdtar -xvf ${uuid}.shell-extension.zip -C "$pkgdir/usr/share/gnome-shell/extensions/${uuid}" +} |