# Maintainer: Llewelyn Trahaearn # Contributor: Dave Kleinschmidt # Contributor: Frikilinux # Contributor: Surefire pkgname=gnome-shell-extension-appindicator-git pkgver=20+16+ge2de1b7 pkgrel=1 epoch=1 pkgdesc="Integrates AppIndicators into GNOME Shell." arch=('any') url="https://github.com/ubuntu/gnome-shell-extension-appindicator" license=('GPL') makedepends=('git') depends=('gnome-shell') optdepends=( 'libappindicator-gtk2: support GTK+2 applications' 'libappindicator-gtk3: support GTK+3 applications' 'libappindicator-sharp: support .net applications' ) source=("${pkgname}::git+https://github.com/ubuntu/gnome-shell-extension-appindicator.git") sha512sums=('SKIP') pkgver() { cd "${pkgname}" git describe --long --tags | sed 's/^v//;s/-/+/g' } package() { cd "${pkgname}" # Locate the extension. local _extname="$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)" local _destdir="${pkgdir}/usr/share/gnome-shell/extensions/${_extname}" # Copy extension files into place. install -Dm644 -t "${_destdir}" ./*.js metadata.json install -Dm644 -t "${_destdir}/interfaces-xml" ./interfaces-xml/*.xml install -Dm644 -t "${pkgdir}/usr/share/glib-2.0/schemas" ./interfaces-xml/*.xml }