29 lines
911 B
Bash
29 lines
911 B
Bash
# Template file for 'cdogs-sdl'
|
|
pkgname=cdogs-sdl
|
|
version=2.1.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="
|
|
-DCMAKE_INSTALL_PREFIX=/usr/share/cdogs-sdl/
|
|
-DCDOGS_DATA_DIR=/usr/share/cdogs-sdl/
|
|
"
|
|
hostmakedepends="pkg-config python3-protobuf protobuf"
|
|
makedepends="SDL2-devel SDL2_mixer-devel SDL2_image-devel SDL2_net-devel
|
|
gtk+3-devel protobuf-devel"
|
|
short_desc="Classic overhead run-and-gun game"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://cxong.github.io/cdogs-sdl/"
|
|
distfiles="https://github.com/cxong/cdogs-sdl/archive/${version}.tar.gz"
|
|
checksum=ea24c15cf3372f7d2fd4275cea4f1fd658a2bd5f79f7e6d0c8e3f98991c60dc2
|
|
replaces="cdogs-sdl-data<=0.7.3"
|
|
|
|
pre_configure() {
|
|
vsed -i CMakeLists.txt -e "s; -Werror;;"
|
|
}
|
|
|
|
post_install() {
|
|
mv "$DESTDIR"/usr/share/cdogs-sdl/bin/ "$DESTDIR"/usr/bin/
|
|
mv "$DESTDIR"/usr/share/cdogs-sdl/share/* "$DESTDIR"/usr/share/
|
|
}
|