-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
37 lines (31 loc) · 846 Bytes
/
PKGBUILD
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
36
37
# Maintainer: Joakim Reinert <[email protected]>
pkgname=yanc-font-git
pkgver=1.0
pkgrel=1
pkgdesc='yet another neat condensed font. based on gohufont.'
arch=(any)
url='https://github.com/jreinert/yanc-font'
licence=('MIT')
depends=(fontconfig xorg-font-utils)
makedepends=('git' 'xorg-bdftopcf')
source=("${pkgname}::git+https://github.com/jreinert/yanc-font.git")
sha512sums=(SKIP)
provides=('yanc-font')
conflicts=('yanc-font')
install=$pkgname.install
pkgver() {
cd "${pkgname}"
printf '0.r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${pkgname}"
for file in *.bdf; do
bdftopcf $file | gzip > ${file/%bdf/pcf.gz}
done
}
package() {
cd "${pkgname}"
install -d "$pkgdir/usr/share/fonts/misc"
install -m644 *.pcf.gz "$pkgdir/usr/share/fonts/misc/"
}
# vim:set ts=2 sw=2 et: