void-packages/srcpkgs/crawl/template
2021-01-09 12:59:11 +01:00

32 lines
1 KiB
Bash

# Template file for 'crawl'
pkgname=crawl
version=0.26.0
revision=1
build_wrksrc="crawl-ref/source"
make_build_args="prefix=/usr bin_prefix=bin"
hostmakedepends="perl pkg-config python3 python3-yaml which"
makedepends="ncurses-devel lua51-devel sqlite-devel zlib-devel"
short_desc="Dungeon Crawl Stone Soup roguelike adventure"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="http://crawl.develz.org/"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
checksum=6306c835246057bf91b6690fde14c2c3433ebe1d526876f96c46fab6dc109d45
nocross=yes
post_extract() {
sed -i 's/defined(__ANDROID__)/& || !defined(__GLIBC__)/' ${build_wrksrc}/crash.cc
}
do_build() {
echo $version >util/release_ver
make ${makejobs} CC="$CC" CXX="$CXX" \
EXTERNAL_FLAGS="$CFLAGS" EXTERNAL_LDFLAGS="$LDFLAGS" \
${make_build_args} V=1 NO_TRY_GOLD=1 DESTDIR=${DESTDIR}
}
do_install() {
make CC="$CC" CXX="$CXX" \
EXTERNAL_FLAGS="$CFLAGS" EXTERNAL_LDFLAGS="$LDFLAGS" \
${make_build_args} DESTDIR=${DESTDIR} install
}