aboutsummaryrefslogtreecommitdiffstats
path: root/testing/freetype-infinality/APKBUILD
blob: bedca47039fe6b0cdd6515889a9c55e85a1dbb9b (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=freetype-infinality
pkgver=2.5.5
pkgrel=0
pkgdesc="TrueType font rendering library with infinality patch"
url="ttp://www.infinality.net/blog/infinality-freetype-patches/"
arch="all"
license="GPL"
depends=""
depends_dev="zlib-dev libpng-dev"
makedepends="$depends_dev"
install=""
replaces="freetype"
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2
	infinality-settings.sh
	01-freetype-2.5.5-enable-valid.patch
	02-ftsmooth-2.5.5.patch
	03-upstream-2015.01.23.patch
	04-infinality-2.5.5-2015.01.23.patch"

_builddir=$srcdir/freetype-$pkgver

prepare() {
	local i
	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 \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -D "${srcdir}/infinality-settings.sh" \
		"${pkgdir}/etc/profile.d/infinality-settings.sh" || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="2a7a314927011d5030903179cf183be0  freetype-2.5.5.tar.bz2
1ed3a98a323ddb959c65d3d850338130  infinality-settings.sh
aa55f7eae584dec7463930ab71ad3dc2  01-freetype-2.5.5-enable-valid.patch
59560ee36b22a597144b231d27157563  02-ftsmooth-2.5.5.patch
edbc6f0d7869e3674f19a037ed60590f  03-upstream-2015.01.23.patch
9b787d22ea6acf8b5c50af63c203eca5  04-infinality-2.5.5-2015.01.23.patch"
sha256sums="387bcc4b780b12484aa2ec9f7db1a55d8286eb5639f45fbc0fbba7a4e5a1afb9  freetype-2.5.5.tar.bz2
21192ce47be46ccd44e8aeea99754d4e5e38cb52717f752d67c319c74fea2716  infinality-settings.sh
086c9874ba5217dab419ac03dbc5ad6480aaa67b3c9d802f7181d8a3e007f8eb  01-freetype-2.5.5-enable-valid.patch
149ed6ec6fbcdffe01077432295fbbfd179a9c23312562e822a3bdd1fbf6aec8  02-ftsmooth-2.5.5.patch
f6032257ef106a6d6d4cab1b2c154f60407af1e54c2941b4c14459fa64cdc40d  03-upstream-2015.01.23.patch
85f7168bb4ab56042db175f7a8d3a7ce23669c8f44c2c7860d2b53d673c047b9  04-infinality-2.5.5-2015.01.23.patch"
sha512sums="1fc72d24da1744a6a5faf3338e49912c81ce83f30def1e80a2a15b50e7f83893a4fe24a70ef88b65ecc217bed1c15d85804c364eba221b35e25531c727fe8559  freetype-2.5.5.tar.bz2
a4a0461bdd9efbf4ec5d2f1de41ff354f4d485a1dee6f6fac1d1ab912b08daeb99cffc0ff2cc81e3023d5f15baf2dbcb6bf6341ebe69b84cbb0037be3393548c  infinality-settings.sh
1cefdab6a2de6dbae84140007b47a644bd2de72c112f7b0e9c17810df8897c768b8ce584863e9643405df27ffb4476830dd9a295af02b5ac2379e1bb9b1bb21f  01-freetype-2.5.5-enable-valid.patch
cf5a848ff54cc22f81d2abbb5033706aea466b4924ef033930a50d3bfef21096a0d5142ab5d4a47fee163a5b3700d1881ef21bfb557fc1446ef3d7f927ad1bfc  02-ftsmooth-2.5.5.patch
06539b6da251bc01465ff216fed1e337894131fc0a9b35b8890b3d32d5c77cd75177329f14b5309244b932c0e5caf05fe45bb17aed4081ef46cccba00f869efc  03-upstream-2015.01.23.patch
da449943778c6e31e65e677237863814cbbd1523d32f4a8d46e3816bf8243a23a78f63c041da9700fa4eec3b05705c4b300e3e4b5056fcb20859f410e360296f  04-infinality-2.5.5-2015.01.23.patch"