summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristian Schendel2020-12-25 15:23:00 +0100
committerChristian Schendel2020-12-25 15:23:00 +0100
commite88b169020759a2c4e84629f4dde328069a5b558 (patch)
treeaf0eded101fe2b137b4c742322bc13d04155f592 /PKGBUILD
downloadaur-e88b169020759a2c4e84629f4dde328069a5b558.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d3812be73b1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Christian Schendel <doppelhelix@gmail.com>
+
+pkgname=gnome-shell-extension-compiz-windows-effect-git
+pkgver=r14.3e34af7
+pkgrel=1
+pkgdesc="Compiz wobbly windows effect with libanimation engine."
+arch=('any')
+url="https://github.com/hermes83/compiz-windows-effect"
+install=${pkgname%-git}.install
+license=('GPL3')
+depends=('gnome-shell>=3.28' 'libanimation-gnome-shell-git')
+makedepends=('git' 'glib2')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("${pkgname%-git}::git+https://github.com/hermes83/compiz-windows-effect.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ local _uuid="compiz-windows-effect@hermes83.github.com"
+ local _destdir="$pkgdir/usr/share/gnome-shell/extensions/$_uuid"
+
+ cd "${srcdir}/${pkgname%-git}"
+ find . -regextype posix-egrep -regex ".*\.(js|json)$" -exec\
+ install -Dm 644 {} ${_destdir}/{} \;
+ cp -R schemas "${_destdir}"
+ #rebuild compiled GSettings schemas if missing
+ if [[ ! -f "${_destdir}/schemas/gschemas.compiled" ]]; then
+ glib-compile-schemas "${_destdir}/schemas"
+ fi
+ chmod -R 755 "${_destdir}"
+}