1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
# Maintainer: Leleat
pkgname='gnome-shell-extension-tiling-assistant'
pkgver=39
pkgrel=1
pkgdesc="A GNOME Shell extension to expand GNOME's native 2 column design."
arch=('x86_64')
url="https://github.com/Leleat/Tiling-Assistant"
license=('GPL')
depends=('gnome-shell>=40')
install='INSTALL'
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
noextract=("*tiling-assistant@leleat-on-github*")
md5sums=('SKIP')
build() {
# cd into repo dir
cd "${srcdir}/Tiling-Assistant-${pkgver}"
# package extension to compile settings and translations
gnome-extensions pack tiling-assistant@leleat-on-github \
--force \
--podir="../translations" \
--extra-source="src"
}
package() {
# cd into repo dir
cd "${srcdir}/Tiling-Assistant-${pkgver}"
# instead of using gnome-extensions to install the extension package
# unzip to $pkgdir/usr/share/gnome-shell/extensions/ since gnome-extensions
# installs the extension locally while on Arch it seems like /usr/ is the
# convention
_UUID="tiling-assistant@leleat-on-github"
mkdir -p "${pkgdir}/usr/share/gnome-shell/extensions"
unzip ${_UUID}.shell-extension.zip \
-d "${pkgdir}/usr/share/gnome-shell/extensions/${_UUID}"
}
|