diff options
author | Llewelyn Trahaearn | 2018-08-11 07:41:51 -0700 |
---|---|---|
committer | Llewelyn Trahaearn | 2018-08-11 07:41:51 -0700 |
commit | 7e4f01b5240a17563522bb23d7bf5652f932dd03 (patch) | |
tree | 056f1788027943cd462cfd42e9b37f233f3d4ce7 | |
download | aur-7e4f01b5240a17563522bb23d7bf5652f932dd03.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..34998e0d77f7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = gnome-shell-extension-vitals-git + pkgdesc = Displays system vitals in a GNOME Shell top bar pop-down. + pkgver = 34.r51.g92dc591 + pkgrel = 1 + url = https://github.com/corecoding/Vitals + arch = any + license = GPL + makedepends = git + depends = dconf + depends = gnome-shell + depends = libgtop + depends = lm_sensors + provides = gnome-shell-extension-vitals + conflicts = gnome-shell-extension-vitals + source = gnome-shell-extension-vitals::git+https://github.com/corecoding/Vitals + sha512sums = SKIP + +pkgname = gnome-shell-extension-vitals-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5a1a8cf0fa95 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Llewelyn Trahaearn <WoefulDerelict at GMail dot com> + +pkgname=gnome-shell-extension-vitals-git +pkgver=34.r51.g92dc591 +pkgrel=1 +pkgdesc="Displays system vitals in a GNOME Shell top bar pop-down." +arch=('any') +url="https://github.com/corecoding/Vitals" +license=('GPL') +depends=('dconf' 'gnome-shell' 'libgtop' 'lm_sensors') +makedepends=('git') +provides=("${pkgname%-*}") +conflicts=("${pkgname%-*}") +source=("${pkgname%-*}::git+${url}") +sha512sums=('SKIP') + +pkgver() { + cd "${pkgname%-*}" + ( set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/^EGO.//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + # Locate the extension. + cd "$(dirname $(find -name 'metadata.json' -print -quit))" + _extname=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json) + _destdir="${pkgdir}/usr/share/gnome-shell/extensions/${_extname}" + # Copy extension files into place. + find -maxdepth 1 \( -iname '*.js*' -or -iname '*.css' -or -iname '*.ui' \) -exec install -Dm644 -t "${_destdir}" '{}' + + find -maxdepth 2 \( -iname '*.svg*' \) -exec install -Dm644 -t "${_destdir}/icons" '{}' + + find -name '*.xml' -exec install -Dm644 -t "${pkgdir}/usr/share/glib-2.0/schemas/" '{}' + + cp -r --no-preserve=ownership,mode helpers "${_destdir}" + install -Dm644 schemas/gschemas.compiled "${_destdir}/schemas/gschemas.compiled" + install -Dm644 schemas/prefs.ui "${_destdir}/schemas/prefs.ui" +} |