aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxfont/APKBUILD
blob: d2b61090f0be1bd2e50a4a6c0637ec1ed22941ef (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
46
47
48
49
50
51
52
53
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxfont
pkgver=1.4.9
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
	patcache.patch"

_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
	# the < 2.1.3 requirement was added in 1.4.8, due to clang.
	# http://cgit.freedesktop.org/xorg/lib/libXfont/commit/?h=libXfont-1.4-branch&id=9b41f3d0c7c430a2909c9455eff347e714f0c4b4
	# however, we have patch for it so we remove the version check
	sed -i -e 's/fontsproto < 2.1.3/fontsproto/g' configure
}

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="5baa3225a49eeda8e5a476b85704cfd4  libXfont-1.4.9.tar.bz2
89625eef7b0d48b4246720c6954c3917  patcache.patch"
sha256sums="6c6b061a3aa44f0ac95785f9579f6427080c60ae6948b49bcc8d44f63942ad89  libXfont-1.4.9.tar.bz2
e181ade4eec344917a8252779f973c45fc2540d5bd5ec170e538b1c2a6388518  patcache.patch"
sha512sums="d541dac1c8639578a122eaa61c3df1cd180f820609a02897baf1f1e45f49109b3a755a7f3b5f284716f5e6f494a829aa86be1c730156eb82db11b1551a320654  libXfont-1.4.9.tar.bz2
3af4e3f1705aac17c845b942332c005ee7b1ab362502433f00d94053a327ceb3b91ef9f35c4c58a85b35745da1b5a56e51b8733cc57ad7f2190c4197396de3fd  patcache.patch"