summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8260262bd6dc95af3903deac99a1ca64f0c1d41 (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
# Maintainer: lucy <lucy@luz.lu>

pkgname=bdf-tewi-git
_gitname=tewi-font
pkgver=0.228.273eb0e
pkgrel=1
pkgdesc='Bitmap font'
arch=('any')
url="https://github.com/lucy/tewi-font"
license=('MIT')
depends=('xorg-fonts-encodings' 'xorg-font-utils')
makedepends=('git')
install="$pkgname.install"
source=('git+https://github.com/lucy/tewi-font.git')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$_gitname"
	echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}

package() {
	cd "$srcdir/$_gitname"
	install -T -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -d -m755 "$pkgdir/usr/share/fonts/misc/"
	install -m644 -t "$pkgdir/usr/share/fonts/misc/" \
		"tewi-bold-11.bdf" "tewi-normal-11.bdf" \
		"tewi2a-bold-11.bdf" "tewi2a-normal-11.bdf" \
		"tewifw-bold-11.bdf" "tewifw-normal-11.bdf"
}