cdogs-sdl: fix build; add -data subpackage
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
9706ead325
commit
f9f0b01fc5
2 changed files with 13 additions and 1 deletions
1
srcpkgs/cdogs-sdl-data
Symbolic link
1
srcpkgs/cdogs-sdl-data
Symbolic link
|
@ -0,0 +1 @@
|
|||
cdogs-sdl
|
|
@ -1,10 +1,11 @@
|
|||
# Template file for 'cdogs'
|
||||
pkgname=cdogs-sdl
|
||||
version=0.6.7
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cmake
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="SDL2-devel SDL2_mixer-devel SDL2_image-devel SDL2_net-devel"
|
||||
depends="cdogs-sdl-data>=${version}_${revision}"
|
||||
short_desc="A classic overhead run-and-gun game"
|
||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||
homepage="http://cxong.github.io/cdogs-sdl/"
|
||||
|
@ -13,6 +14,16 @@ distfiles="https://github.com/cxong/cdogs-sdl/archive/$version.tar.gz"
|
|||
checksum=af53c4f45938c4c57f630bc073ea84354ca5a6e26f4e315241a7ba9036c13b52
|
||||
configure_args="-DCDOGS_DATA_DIR=/usr/share/cdogs/"
|
||||
|
||||
CFLAGS="-Wno-restrict -Wno-format-truncation"
|
||||
|
||||
pre_configure() {
|
||||
sed -i '/appveyor.yml.cmake/ s/^/#/' CMakeLists.txt
|
||||
}
|
||||
|
||||
cdogs-sdl-data_package() {
|
||||
short_desc+=" - data"
|
||||
noarch=yes
|
||||
pkg_install() {
|
||||
vmove usr/share/cdogs
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue