pkgname=gnome-shell-extension-app-icons-taskbar _pkgbase=aztaskbar pkgver=22 pkgrel=1 pkgdesc="A simple app icon taskbar extension for GNOME" arch=('any') url="https://gitlab.com/AndrewZaech/aztaskbar" license=('GPL3') depends=('dconf' 'gnome-shell>=1:45') source=("${url}/-/archive/v${pkgver}/${_pkgbase}-v${pkgver}.tar.gz") sha256sums=('4e672777eaf9700764ce8ec2072551200ce4dbdbaf80c9e07c73777590321822') build() { cd "${_pkgbase}-v${pkgver}" make mergepo \ && make VERSION="${pkgver}" _build } package() { cd "${_pkgbase}-v${pkgver}/_build" local _uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json) local _destdir="${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}" install -Dm644 -t "${_destdir}" metadata.json *.js *.css cp -r --no-preserve=ownership,mode media "${_destdir}" install -Dm644 -t "${pkgdir}/usr/share/glib-2.0/schemas/" schemas/*.xml cd locale for locale in */ do install -Dm644 -t "${pkgdir}/usr/share/locale/${locale}/LC_MESSAGES" "${locale}/LC_MESSAGES"/*.mo done }