aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sdl2_ttf/APKBUILD
blob: 4170fab5d2dc55ab80d536f03d5d7365ad9bf9c3 (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=sdl2_ttf
pkgver=2.0.12
pkgrel=0
_pkgname=SDL2_ttf
pkgdesc="A library which allows you to use TrueType fonts in your SDL applications"
url="http://www.libsdl.org/projects/SDL_ttf/"
arch="all"
license="zlib"
depends=""
depends_dev="freetype-dev sdl2-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://www.libsdl.org/projects/SDL_ttf/release/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$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
	update_config_sub
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="79787216b56cb4707f39d538f2225e00  SDL2_ttf-2.0.12.tar.gz"
sha256sums="8728605443ea1cca5cad501dc34dc0cb15135d1e575551da6d151d213d356f6e  SDL2_ttf-2.0.12.tar.gz"
sha512sums="2dfd7d9a87d86b0446e52c78dcf4c45dba747256ff9cb4cc010818eac725410f5a1a781e6695ca0bcead756c70519d8d5b4df6c1b2935085e0356d9b4d7844fa  SDL2_ttf-2.0.12.tar.gz"