summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19e8223ca1c1873fe3a7e3a4b8a0a493ac9f536f (plain)
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
# Maintainer: surefire@cryptomile.net

pkgname=gnome-shell-extension-shelltile-git
pkgver=0+19+g569ddba
pkgrel=2
pkgdesc='A tiling window extension for GNOME Shell'
arch=('any')
url='https://extensions.gnome.org/extension/657/shelltile/'
license=('GPL')
depends=('gnome-shell')
makedepends=('git')
conflicts=('gnome-shell-extension-shelltile')
provides=('gnome-shell-extension-shelltile')
groups=('gnome-shell-extensions')
source=('git+https://github.com/emasab/shelltile.git')
sha256sums=('SKIP')

pkgver() {
	cd shelltile

	printf '0+%s+g%s' $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}

package() {
	cd shelltile

	local uuid='ShellTile@emasab.it'
	local destdir="$pkgdir/usr/share/gnome-shell/extensions/$uuid"

	install -Dm644 -t "$pkgdir/usr/share/glib-2.0/schemas"         schemas/*.xml

	install -Dm644 -t "$destdir" *.js *.json
	find locale -type f -name '*.mo' \
		-exec cp --parents -dpt "$destdir" {} +
}