aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sdl2_net/APKBUILD
blob: 983d2da1c184e6268a073517a0819a0e425ee4d2 (plain)
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
# 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"