summaryrefslogtreecommitdiff
path: root/user/sdl_ttf/APKBUILD
blob: 3e34063d804152263e1d9a2f2ff10e4b8b9ee608 (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=sdl_ttf
_pkgname=SDL_ttf
pkgver=2.0.11
pkgrel=0
pkgdesc="TrueType font library for SDL applications"
url="https://www.libsdl.org/projects/SDL_ttf/release-1.2.html"
arch="all"
license="zlib"
depends=""
makedepends="freetype-dev libice-dev sdl-dev"
subpackages="$pkgname-dev"
source="https://www.libsdl.org/projects/$_pkgname/release/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="64e04d1cd77e525e0f2413ad928841e5d3d09d551c030fc577b50777116580e430cb272b2aeb6191dfcc464669cf2f7a5a50d10e7c75637a3b1e8c8fca7fc78b  SDL_ttf-2.0.11.tar.gz"