diff options
author | Mark Wagie | 2021-10-29 17:03:51 -0600 |
---|---|---|
committer | Mark Wagie | 2021-10-29 17:03:51 -0600 |
commit | bb8580f1a51f68a7edde903cf9740e9a1ebe31dd (patch) | |
tree | 4415ac3a3bcb326f8b8b08dbd33d3d6a44fbf76a | |
parent | 1ffdd77bc48d332e961b240848250bcc22c470d9 (diff) | |
download | aur-bb8580f1a51f68a7edde903cf9740e9a1ebe31dd.tar.gz |
use Makefile
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 22 insertions, 14 deletions
@@ -1,7 +1,7 @@ pkgbase = gnome-shell-extension-gnome-ui-tune-git pkgdesc = Tunes the overview UI of GNOME 40 - pkgver = 1.2.0.r5.gf13950d - pkgrel = 1 + pkgver = 1.5.0.r1.ge8cd04d + pkgrel = 2 url = https://github.com/axxapy/gnome-ui-tune arch = any license = GPL3 @@ -13,4 +13,3 @@ pkgbase = gnome-shell-extension-gnome-ui-tune-git sha256sums = SKIP pkgname = gnome-shell-extension-gnome-ui-tune-git - @@ -1,7 +1,7 @@ # Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> pkgname=gnome-shell-extension-gnome-ui-tune-git -pkgver=1.2.0.r5.gf13950d -pkgrel=1 +pkgver=1.5.0.r1.ge8cd04d +pkgrel=2 pkgdesc="Tunes the overview UI of GNOME 40" arch=('any') url="https://github.com/axxapy/gnome-ui-tune" @@ -14,18 +14,27 @@ source=('git+https://github.com/axxapy/gnome-ui-tune.git') sha256sums=('SKIP') pkgver() { - cd $srcdir/gnome-ui-tune - git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + cd $srcdir/gnome-ui-tune + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd $srcdir/gnome-ui-tune + make gettext + make schemas + make dist } package() { - cd $srcdir/gnome-ui-tune - _uuid='gnome-ui-tune@itstime.tech' + cd $srcdir/gnome-ui-tune + _uuid='gnome-ui-tune@itstime.tech' + _schema='org.gnome.shell.extensions.gnome-ui-tune.gschema.xml' - install -Dm644 *.js *.json -t "$pkgdir/usr/share/gnome-shell/extensions/$_uuid" - cp -r schemas src "$pkgdir/usr/share/gnome-shell/extensions/$_uuid" + install -d "$pkgdir/usr/share/gnome-shell/extensions/$_uuid" + bsdtar xvf "$_uuid.shell-extension.zip" -C \ + "$pkgdir/usr/share/gnome-shell/extensions/$_uuid" - install -d "$pkgdir/usr/share/glib-2.0/schemas" - ln -s "/usr/share/gnome-shell/extensions/$_uuid/schemas/org.gnome.shell.extensions.gnome-ui-tune.gschema.xml" \ - "$pkgdir/usr/share/glib-2.0/schemas" + install -d "$pkgdir/usr/share/glib-2.0/schemas" + ln -s "/usr/share/gnome-shell/extensions/$_uuid/schemas/$_schema" \ + "$pkgdir/usr/share/glib-2.0/schemas" } |