aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: ae4cb3fd374f2c0a1ee171fc88ce71993f97e467 (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
pkgname=archmap
pkgver=0.3.r22.g14db501
pkgrel=1

pkgdesc="Generates a map of Arch Linux users"
url="https://github.com/maelstrom59/ArchMap"
arch=('any')
license=('custom:UNLICENSE')

depends=('python' 'python-geojson')
makedepends=('git')

install=archmap.install
source=('archmap::git+https://github.com/maelstrom59/ArchMap.git')

md5sums=('SKIP')

pkgver() {
	cd archmap
	git describe --tags | sed 's/^v//; s/-/-r/; s/-/./g'
}


package() {
	cd archmap
	install -D archmap.py "$pkgdir/usr/bin/archmap.py"

	install -d "$pkgdir/usr/lib/systemd/system"
	install -m644 systemd/archmap.{service,timer} "$pkgdir/usr/lib/systemd/system/"

	install -d "$pkgdir/usr/share/doc/archmap"
	install {README.md,archmap.conf,markers.kml} "$pkgdir/usr/share/doc/archmap"

	install -D -m644 UNLICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}