From 1b6a2d855b28663f61ba1f366e3819687b4580be Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 9 May 2016 14:18:22 +0200 Subject: [PATCH] New package: crawl-tiles-0.18.1 --- srcpkgs/crawl-tiles/template | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 srcpkgs/crawl-tiles/template diff --git a/srcpkgs/crawl-tiles/template b/srcpkgs/crawl-tiles/template new file mode 100644 index 00000000000..64daf2804e5 --- /dev/null +++ b/srcpkgs/crawl-tiles/template @@ -0,0 +1,39 @@ +# Template file for 'crawl-tiles' +pkgname=crawl-tiles +version=0.18.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="pkg-config perl pngcrush dejavu-fonts-ttf" +makedepends="ncurses-devel lua51-devel sqlite-devel zlib-devel + SDL2-devel SDL2_mixer-devel SDL2_image-devel" +depends="dejavu-fonts-ttf" +short_desc="Dungeon Crawl Stone Soup roguelike adventure (with tiles GUI)" +maintainer="Christian Neukirchen " +license="GPL-2" +homepage="http://crawl.develz.org/" +distfiles="https://github.com/crawl/crawl/archive/${version}.tar.gz" +checksum=a0e5f5f9c1d9eaf21574c7f6515b05c742d4885f6def2f588c2e013b858bef91 +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" \ + ${make_build_args} 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 +}