# Maintainer: Mark wagie # Contributor: kpcyrd # Contributor: revelation60 pkgname=gnome-shell-extension-gtile _uuid=gTile@vibou pkgver=60 pkgrel=1 pkgdesc="A window tiling extension for GNOME Shell" arch=('any') url="https://github.com/gTile/gTile" license=('GPL-2.0-or-later') depends=('gnome-shell') makedepends=('git' 'npm' 'typescript') source=("https://github.com/gTile/gTile/archive/V$pkgver/$pkgname-$pkgver.tar.gz") sha256sums=('ee50ebfdd6660f00a7350d1b7b44e7938d91978449ea5f1807380f434f4dd07f') build() { cd gTile-$pkgver export npm_config_cache="$srcdir/npm_cache" npm install npm run build npm run build:dist } package() { cd gTile-$pkgver install -d "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}" bsdtar -xvf gtile.dist.tgz -C \ "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/" --no-same-owner install -Dm644 dist/schemas/org.gnome.shell.extensions.gtile.gschema.xml -t \ "$pkgdir/usr/share/glib-2.0/schemas/" rm -rf "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/schemas" }