aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxfont/APKBUILD
blob: 8bd1d4d9461466dbf7fc3dd0096fdbbfa50169f0 (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
41
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxfont
pkgver=1.5.0
pkgrel=0
pkgdesc="X11 font rasterisation library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
install=
depends_dev="xproto fontsproto libfontenc-dev freetype-dev"
makedepends="$depends_dev xtrans zlib-dev"
source="http://xorg.freedesktop.org/archive/individual/lib/libXfont-$pkgver.tar.bz2"

_builddir="$srcdir"/libXfont-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="664629bfa7cdf8b984155019fd395dcb  libXfont-1.5.0.tar.bz2"
sha256sums="3a3c52c4adf9352b2160f07ff0596af17ab14f91d6509564e606678a1261c25f  libXfont-1.5.0.tar.bz2"
sha512sums="466ecebe27ef4b8dbe2ff1cae0e111d4c449cb29a240477ac53ccb415ee74bb5d51cfd5f41d9f84e9e444b9eca91853306978a3094b279033bf7dedfafba9f3e  libXfont-1.5.0.tar.bz2"