summaryrefslogblamecommitdiff
path: root/user/sdl_net/APKBUILD
blob: 16a01d234fef0e0e64c4dba7b10992a4c245ac8b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17















                                                                                   



                         










                                         


                  


                                                                                                                                                                   
# 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() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="2766ca55343127c619958ab3a3ae3052a27a676839f10a158f7dfc071b8db38c2f1fc853e8add32b9fef94ab07eaa986f46a68e264e8087b57c990af30ea9a0b  SDL_net-1.2.8.tar.gz"