summaryrefslogtreecommitdiff
path: root/user/sdl_ttf
diff options
context:
space:
mode:
Diffstat (limited to 'user/sdl_ttf')
-rw-r--r--user/sdl_ttf/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/sdl_ttf/APKBUILD b/user/sdl_ttf/APKBUILD
new file mode 100644
index 000000000..96321243a
--- /dev/null
+++ b/user/sdl_ttf/APKBUILD
@@ -0,0 +1,45 @@
+# 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() {
+ cd "$builddir"
+ default_prepare
+ update_config_sub
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="64e04d1cd77e525e0f2413ad928841e5d3d09d551c030fc577b50777116580e430cb272b2aeb6191dfcc464669cf2f7a5a50d10e7c75637a3b1e8c8fca7fc78b SDL_ttf-2.0.11.tar.gz"