APKBUILD 1.72 KB
Newer Older
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=freetype-infinality
pkgver=2.4.4
pkgrel=0
pkgdesc="TrueType font rendering library with infinality patch"
url="http://www.infinality.net"
arch="all"
license="GPL"
depends=
depends_dev="zlib-dev freetype-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
replaces="freetype"
source="http://downloads.sourceforge.net/sourceforge/freetype/freetype-$pkgver.tar.bz2
freetype-add-subpixel-hinting-infinality-20101114-1.patch
freetype-enable-subpixel-hinting-infinality-20100909-1.patch
freetype-entire-infinality-patchset-20101114-1.patch
infinality-settings
freetype-2.2.1-enable-valid.patch
freetype2-infinality-protect_null_pointer-goddesse.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 --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man 
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 "$srcdir/infinality-settings" "$pkgdir/etc/infinality-settings"
}

md5sums="b3e2b6e2f1c3e0dffa1fd2a0f848b671  freetype-2.4.4.tar.bz2
799a2d229c2997a5bb2d5b7c9f92fdba  freetype-add-subpixel-hinting-infinality-20101114-1.patch
a88b1a66da44a90c1fdcdeaa39a2dc09  freetype-enable-subpixel-hinting-infinality-20100909-1.patch
6725774b17820f5413cb6a3cf7547f53  freetype-entire-infinality-patchset-20101114-1.patch
416154ff9eb8dfb27e46080f678785b8  infinality-settings
214119610444c9b02766ccee5e220680  freetype-2.2.1-enable-valid.patch
316d2986f9a08e7ceb51fb9d5a5cab38  freetype2-infinality-protect_null_pointer-goddesse.patch"