summaryrefslogtreecommitdiff
path: root/user/sdl_net
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-29 03:33:15 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-29 03:33:15 +0000
commit05bb90387abb8d5d4bbe1ce2d33f688426961c71 (patch)
treeb9b4e8958cad06e53aef9e2fef32b84105a2d381 /user/sdl_net
parent2226d523893582bcd38343a5c53257ce4d9060a8 (diff)
downloadpackages-05bb90387abb8d5d4bbe1ce2d33f688426961c71.tar.gz
packages-05bb90387abb8d5d4bbe1ce2d33f688426961c71.tar.bz2
packages-05bb90387abb8d5d4bbe1ce2d33f688426961c71.tar.xz
packages-05bb90387abb8d5d4bbe1ce2d33f688426961c71.zip
user/sdl_net: new package
Diffstat (limited to 'user/sdl_net')
-rw-r--r--user/sdl_net/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/user/sdl_net/APKBUILD b/user/sdl_net/APKBUILD
new file mode 100644
index 000000000..6172ddc1e
--- /dev/null
+++ b/user/sdl_net/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=sdl_net
+_pkgname=SDL_net
+pkgver=1.2.8
+pkgrel=0
+pkgdesc="Cross-platform networking library"
+url="https://www.libsdl.org/projects/SDL_net/release-1.2.html"
+arch="all"
+license="zlib"
+depends=""
+makedepends="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 \
+ --disable-static
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="2766ca55343127c619958ab3a3ae3052a27a676839f10a158f7dfc071b8db38c2f1fc853e8add32b9fef94ab07eaa986f46a68e264e8087b57c990af30ea9a0b SDL_net-1.2.8.tar.gz"