summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69aec3892b1b42d0ebd41936fc2e9fbbd2558d7f (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
# Maintainer: Lennard Hofmann <lennard dot hofmann at web dot de>
pkgname=otf-genome-git
_pkgname=genome
pkgver=r4.e991e65
pkgrel=2
pkgdesc='Thin sans-serif display font by Alfredo Marco Pradil'
arch=(any)
url="https://github.com/marcologous/$_pkgname"
license=(OFL)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
	# Git, no tags available
	cd "$srcdir/$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/$_pkgname"
	install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" OFL-FAQ.txt
	install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
	install -Dm644 -t "$pkgdir/usr/share/fonts/OTF" *.otf
}