a6fdf65446
* aports: unicsy-demo: pure Python program should have noarch set Per https://wiki.alpinelinux.org/wiki/APKBUILD_examples:Python#arch, pure Python programs should be marked as noarch in the APKBUILD instead of all. * aports: sdl_net: fix build on aarch64 The version of config.guess and config.sub predate aarch64, so ./configure errors out with instructions to update them. Add a prepare section in APKBUILD to do this. * aports: sdl_net+chocolate-doom: pass CHOST and CBUILD to configure Other Alpine packages pass these options in to aid cross compling; for example, the template APKBUILD from https://github.com/alpinelinux/abuild/blob/master/newapkbuild.in#L43 uses them. Add them to chocolate-doom and sdl_net.
33 lines
740 B
Text
33 lines
740 B
Text
pkgname=sdl_net
|
|
pkgver=1.2.8
|
|
pkgrel=0
|
|
pkgdesc="A small sample cross-platform networking library"
|
|
url="https://www.libsdl.org/projects/SDL_net/"
|
|
arch="all"
|
|
license="zlib"
|
|
depends="sdl"
|
|
makedepends="sdl-dev"
|
|
source="https://www.libsdl.org/projects/SDL_net/release/SDL_net-$pkgver.tar.gz"
|
|
builddir="$srcdir/SDL_net-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
update_config_sub
|
|
update_config_guess
|
|
}
|
|
|
|
build() {
|
|
cd $builddir
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr --disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $builddir
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="2766ca55343127c619958ab3a3ae3052a27a676839f10a158f7dfc071b8db38c2f1fc853e8add32b9fef94ab07eaa986f46a68e264e8087b57c990af30ea9a0b SDL_net-1.2.8.tar.gz"
|