36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'crawl'
|
|
pkgname=crawl
|
|
version=0.23.1
|
|
revision=1
|
|
build_wrksrc="crawl-ref/source"
|
|
make_build_args="prefix=/usr bin_prefix=bin"
|
|
hostmakedepends="perl pkg-config python python-yaml"
|
|
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"
|
|
homepage="http://crawl.develz.org/"
|
|
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
|
|
checksum=89141ea995f0e8c517fd19e447e8420eca51977c9b358543f0b17a27bf8afeb6
|
|
nocross=yes
|
|
|
|
post_extract() {
|
|
sed -i 's/defined(__ANDROID__)/& || !defined(__GLIBC__)/' ${build_wrksrc}/crash.cc
|
|
}
|
|
|
|
do_build() {
|
|
echo $version >util/release_ver
|
|
# crashes with relro?
|
|
make ${makejobs} CC="$CC" CXX="$CXX" \
|
|
EXTERNAL_FLAGS="$CFLAGS" V=1 build-rltiles
|
|
make ${makejobs} CC="$CC" CXX="$CXX" \
|
|
EXTERNAL_FLAGS="$CFLAGS" EXTERNAL_LDFLAGS="$LDFLAGS" \
|
|
${make_build_args} V=1 DESTDIR=${DESTDIR}
|
|
}
|
|
|
|
do_install() {
|
|
make CC="$CC" CXX="$CXX" \
|
|
EXTERNAL_FLAGS="$CFLAGS" EXTERNAL_LDFLAGS="$LDFLAGS" \
|
|
${make_build_args} DESTDIR=${DESTDIR} install
|
|
}
|