summaryrefslogtreecommitdiff
path: root/user/plib/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/plib/APKBUILD')
-rw-r--r--user/plib/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/user/plib/APKBUILD b/user/plib/APKBUILD
new file mode 100644
index 000000000..7f8f95cee
--- /dev/null
+++ b/user/plib/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=plib
+pkgver=1.8.5
+pkgrel=0
+pkgdesc="Portable game libraries"
+url="http://plib.sourceforge.net/"
+arch="all"
+options="!dbg" # No shared libraries
+license="LGPL-2.0+"
+depends=""
+makedepends="libxi-dev libxmu-dev libxt-dev mesa-dev"
+subpackages="$pkgname-dev"
+source="http://plib.sourceforge.net/dist/plib-$pkgver.tar.gz
+ fix-openflight.patch
+ plib-1.8.5-CVE-2011-4620.patch
+ plib-1.8.5-CVE-2012-4552.patch
+ "
+
+prepare() {
+ 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="17154cc77243fe576c2bcbcb0285b98aef1a0634658f5473e95fe0ac8fa3ed477dbe5620e44ccf0b7cc616f812af0cd44d6fcbba0c563180d3b61c9d6f158e1d plib-1.8.5.tar.gz
+fac9c78a57a0c564c46d586ebf541b45cf7dc838387498f3263bac78f0f78c53c85000667d6dfd349e328b1cd4254ac0d786dd825aefbe957f94e6d3b91ec41b fix-openflight.patch
+c046cf65e80629f238aaba724f522c31b434f5c9687ea02b019846ce3469c6b074bd014f81a7a4e6b43db7b084f4dcd9d4c04b557dbc1b8b8ca00f2d782fdf1c plib-1.8.5-CVE-2011-4620.patch
+a09462ecb085703aae7cd3b77954cc800410aa37a9616255cca2f21456e6d5dcf8ead3f684c98236deb1455c6a034dc8ec874bafdbab003f7a63517ea1f8350d plib-1.8.5-CVE-2012-4552.patch"