void-packages/srcpkgs/Cataclysm-DDA/template

65 lines
1.7 KiB
Bash

# Template file for 'Cataclysm-DDA'
pkgname=Cataclysm-DDA
version=0.C
revision=1
build_style=gnu-makefile
make_build_args="PREFIX=/usr RELEASE=1 TILES=1 SOUND=1 USE_HOME_DIR=1"
make_install_args="TILES=1 SOUND=1 USE_HOME_DIR=1"
make_use_env=yes
hostmakedepends="pkg-config"
makedepends="SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel freetype-devel
gettext-devel lua-devel"
depends="Cataclysm-DDA-data"
short_desc="Turn-based survival game set in a post-apocalyptic world"
maintainer="John <johnz@posteo.net>"
license="CC-BY-SA-3.0, CC-BY-3.0"
homepage="https://cataclysmdda.org/"
distfiles="https://github.com/CleverRaven/Cataclysm-DDA/archive/${version}.tar.gz"
checksum=69e947824626fffb505ca4ec44187ec94bba32c1e5957ba5c771b3445f958af6
if [ "$CROSS_BUILD" ];then
_cross_args="TARGETSYSTEM=LINUX CROSS=${XBPS_CROSS_TRIPLET}-"
make_build_args+=" $_cross_args"
make_install_args+=" $_cross_args"
fi
post_build() {
make ${makejobs} ${_cross_args} ${_no_tiles_args}
}
do_check() {
: #needs tap++.h
}
post_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} ${_cross_args} ${_no_tiles_args} install
}
Cataclysm-DDA-tiles_package() {
short_desc+=" - SDL tiles version"
depends="Cataclysm-DDA-data Cataclysm-DDA-tiles-data"
pkg_install() {
vmove usr/bin/cataclysm-tiles
}
}
Cataclysm-DDA-tiles-data_package() {
short_desc+=" - tiles data files"
noarch=yes
pkg_install() {
vmove usr/share/cataclysm-dda/gfx
}
}
Cataclysm-DDA-data_package() {
short_desc+=" - data files"
noarch=yes
pkg_install() {
vmove usr/share/locale
for _i in json credits font mods motd names raw recycling title \
changelog.txt LICENSE.txt README.txt cataicon.ico fontdata.json;do
vmove usr/share/cataclysm-dda/$_i
done
}
}