#Packager: Panagiotis Papasotiriou
pkgname=SDL2_net pkgver=2.2.0 pkgrel=1pp source=("https://github.com/libsdl-org/SDL_net/releases/download/release-$pkgver/$pkgname-$pkgver.tar.gz") sourcetemplate=http://people.salixos.org/papasot/salix/$pkgname url="https://github.com/libsdl-org/SDL_net" docs=("Readme.txt CHANGES.txt") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "SDL2_net (SDL2 network library)" "This is an example portable network library for use with SDL." "" "HomePage: https://github.com/libsdl-org/SDL_net" ) build() { cd $startdir/src/$pkgname-$pkgver mv README.txt Readme.txt mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DCMAKE_BUILD_TYPE=Release .. make -j $numjobs || exit 1 make install DESTDIR=$startdir/pkg cd .. }