pmaports/main/chocolate-doom/APKBUILD
zhuowei a6fdf65446 aports: clean up APKBUILD for unicsy-demo, sdl_net, and chocolate-doom (#664)
* 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.
2017-10-02 20:47:26 +00:00

28 lines
760 B
Text

pkgname=chocolate-doom
pkgver=2.3.0
pkgrel=0
pkgdesc="Historically-accurate Doom, Heretic, Hexen, and Strife ports."
url="http://www.chocolate-doom.org/"
arch="all"
license="GPL2"
depends="libpng libsamplerate sdl"
makedepends="python sdl-dev sdl_net sdl_mixer-dev"
subpackages="chocolate-doom-doc"
source="http://chocolate-doom.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}-${pkgver}"
build(){
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="43353875f76432123336ac7f8a37d00c447286f5bf17c2a12f6307568fe2533370ca8e5e0f76fa475e353f20dfdea79e3948c47ea8b079ef5dd9d0a53c305bfc chocolate-doom-2.3.0.tar.gz"