cdogs-sdl: fix build w/ gcc10; remove archs=noarch
This commit is contained in:
parent
d4278970b0
commit
e7d93b117e
1 changed files with 7 additions and 4 deletions
|
@ -1,24 +1,27 @@
|
||||||
# Template file for 'cdogs-sdl'
|
# Template file for 'cdogs-sdl'
|
||||||
pkgname=cdogs-sdl
|
pkgname=cdogs-sdl
|
||||||
version=0.7.3
|
version=0.7.3
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DCDOGS_DATA_DIR=/usr/share/cdogs/"
|
configure_args="-DCDOGS_DATA_DIR=/usr/share/cdogs/"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="SDL2-devel SDL2_mixer-devel SDL2_image-devel SDL2_net-devel"
|
makedepends="SDL2-devel SDL2_mixer-devel SDL2_image-devel SDL2_net-devel"
|
||||||
depends="cdogs-sdl-data>=${version}_${revision}"
|
depends="cdogs-sdl-data>=${version}_${revision}"
|
||||||
short_desc="A classic overhead run-and-gun game"
|
short_desc="Classic overhead run-and-gun game"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="http://cxong.github.io/cdogs-sdl/"
|
homepage="http://cxong.github.io/cdogs-sdl/"
|
||||||
distfiles="https://github.com/cxong/cdogs-sdl/archive/${version}.tar.gz"
|
distfiles="https://github.com/cxong/cdogs-sdl/archive/${version}.tar.gz"
|
||||||
checksum=0a19a619dd02f647d680b245abc97359e04cdc4231a61b86397a37100907195c
|
checksum=0a19a619dd02f647d680b245abc97359e04cdc4231a61b86397a37100907195c
|
||||||
|
|
||||||
CFLAGS="-Wno-restrict -Wno-format-truncation -Wno-stringop-overflow -Wno-stringop-truncation -Wno-format-overflow"
|
CFLAGS="-fcommon"
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
vsed -i CMakeLists.txt -e "s; -Werror;;"
|
||||||
|
}
|
||||||
|
|
||||||
cdogs-sdl-data_package() {
|
cdogs-sdl-data_package() {
|
||||||
short_desc+=" - data"
|
short_desc+=" - data"
|
||||||
archs=noarch
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/share/cdogs
|
vmove usr/share/cdogs
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue