summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7afb67220b6861dc5e32fdadafadc5d8255c7418 (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
36
37
38
39
40
# Maintainer: aksr <aksr at t-com dot me>
pkgname=fbpad-mkfn-git
pkgver=r8.3ed3d3d
pkgrel=1
pkgdesc="Create fbpad font files."
arch=('i686' 'x86_64')
url="http://repo.or.cz/fbpad_mkfn.git"
url="http://litcave.rudi.ir/"
license=('ISC')
depends=('freetype2')
makedepends=('git')
provides=('ft2tf' 'fbpad-mkfn')
conflicts=('fbpad-mkfn')
source=("$pkgname::git+git://repo.or.cz/fbpad_mkfn.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/$pkgname"
	## gen.sh adjustments
	sed -i '4s@"/path/to/fonts"@"/usr/share/fonts/TTF" # path to fonts@g' gen.sh
	sed -i 's@./mkfn_ft@fbpad-mkfn-ft@g' gen.sh
}

build() {
	cd "$srcdir/$pkgname"
	make
}

package() {
	cd "$srcdir/$pkgname"
	install -Dm755 mkfn_ft $pkgdir/usr/bin/fbpad-mkfn-ft
	#install -Dm755 mkfn_stb $pkgdir/usr/bin/fbpad-mkfn-stb
	install -Dm755 gen.sh $pkgdir/usr/share/doc/${pkgname%-*}/gen.sh
	install -Dm644 README $pkgdir/usr/share/doc/${pkgname%-*}/README
}