aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2_ttf/APKBUILD
blob: c460d7cf74a8af011e3fa015cc01736d26e73492 (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=sdl2_ttf
pkgver=2.0.14
pkgrel=1
_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 mesa-dev"
subpackages="$pkgname-dev"
options="!check"  # no test suite
source="http://www.libsdl.org/projects/SDL_ttf/release/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgver

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="e53c05e1e7f1382c316afd6c763388b1  SDL2_ttf-2.0.14.tar.gz"
sha256sums="34db5e20bcf64e7071fe9ae25acaa7d72bdc4f11ab3ce59acc768ab62fe39276  SDL2_ttf-2.0.14.tar.gz"
sha512sums="4db817573fd216e26180f4c401cc869ce407589a461032fd7167dc612d35e038cca1ab67be7909b6b49c741581a68125ab46362ad8e3c0a2cdd39624ad847099  SDL2_ttf-2.0.14.tar.gz"