aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sdl2_net/APKBUILD
diff options
context:
space:
mode:
authorAlex Raschi <raschi.alex@gmail.com>2018-08-08 10:44:36 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-09-04 08:40:31 +0000
commit20852ae0d3985aa329fda0e48ac5b9442bf2b0b9 (patch)
tree151d750be97c717e0e2739914195fbe02cda21ef /testing/sdl2_net/APKBUILD
parent6d102928e62b62c168f419520de4de9270e9ccd6 (diff)
downloadaports-20852ae0d3985aa329fda0e48ac5b9442bf2b0b9.tar.gz
aports-20852ae0d3985aa329fda0e48ac5b9442bf2b0b9.tar.bz2
aports-20852ae0d3985aa329fda0e48ac5b9442bf2b0b9.tar.xz
testing/sdl2_net: new aport
http://www.libsdl.org/projects/SDL_net/ A small sample cross-platform networking library
Diffstat (limited to 'testing/sdl2_net/APKBUILD')
-rw-r--r--testing/sdl2_net/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/sdl2_net/APKBUILD b/testing/sdl2_net/APKBUILD
new file mode 100644
index 0000000000..983d2da1c1
--- /dev/null
+++ b/testing/sdl2_net/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Alex Raschi <raschi.alex@gmail.com>
+pkgname=sdl2_net
+pkgver=2.0.1
+pkgrel=0
+_pkgname=SDL2_net
+pkgdesc="A small sample cross-platform networking library"
+url="http://www.libsdl.org/projects/SDL_net/"
+arch="all"
+license="zlib"
+depends=""
+makedepends="sdl2-dev"
+subpackages="$pkgname-dev"
+options="!check" # no test suite
+source="http://www.libsdl.org/projects/SDL_net/release/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="d27faee3cddc3592dae38947e6c1df0cbaa95f82fde9c87db6d11f6312d868cea74f6830ad07ceeb3d0d75e9424cebf39e54fddf9a1147e8d9e664609de92b7a SDL2_net-2.0.1.tar.gz"