37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
# Template file for 'crawl-tiles'
|
|
pkgname=crawl-tiles
|
|
version=0.26.1
|
|
revision=1
|
|
wrksrc="crawl-${version}"
|
|
build_wrksrc="crawl-ref/source"
|
|
make_build_args="prefix=/usr bin_prefix=bin DATADIR=/usr/share/crawl-tiles
|
|
TILES=y SOUND=y GAME=crawl-tiles"
|
|
hostmakedepends="dejavu-fonts-ttf perl pkg-config pngcrush python3 python3-yaml
|
|
which advancecomp"
|
|
makedepends="ncurses-devel lua51-devel sqlite-devel zlib-devel
|
|
SDL2-devel SDL2_mixer-devel SDL2_image-devel freetype-devel"
|
|
depends="dejavu-fonts-ttf"
|
|
short_desc="Dungeon Crawl Stone Soup roguelike adventure (with tiles GUI)"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://crawl.develz.org/"
|
|
distfiles="https://github.com/crawl/crawl/archive/${version}.tar.gz"
|
|
checksum=c8c6abbefa7f21383ea77cd017033050471e06c60ea4deebd033f5198bc39596
|
|
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
|
|
}
|