void-packages/srcpkgs/gzdoom/template

41 lines
1.5 KiB
Bash

# Template file for 'gzdoom'
pkgname=gzdoom
version=4.10.0
revision=1
archs="~i686* ~arm*"
build_style=cmake
configure_args="-DINSTALL_PK3_PATH=share/gzdoom -DDYN_GTK=OFF -DDYN_OPENAL=OFF"
hostmakedepends="pkg-config tar xz"
makedepends="SDL2-devel gtk+3-devel libgomp-devel ZMusic-devel libopenal-devel libvpx-devel"
short_desc="Advanced Doom source port with OpenGL support"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-3.0-or-later"
homepage="https://www.zdoom.org"
# WARNING: watch out for new submodules
distfiles="https://github.com/ZDoom/gzdoom/archive/g${version}.tar.gz
https://github.com/ZDoom/gzdoom/releases/download/g${version}/gzdoom_${version}_amd64.deb"
checksum="8702522c05048dfd4a765c6ac82a270d8bd0942e813d5bc6f4b69795a5d23a20
1baf9f577839daff89073768eeccf561dd330eabec65217ba67eba799a4dfcab"
skip_extraction="${pkgname}_${version}_amd64.deb"
nocross=yes
CXXFLAGS=-std=gnu++11
if [ "$XBPS_TARGET_LIBC" = musl ]; then
CFLAGS="-D_7ZIP_AFFINITY_DISABLE"
makedepends+=" musl-fts-devel libexecinfo-devel"
fi
post_extract() {
bsdtar xOf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}_${version}_amd64.deb data.tar.xz |
tar --strip-components=4 -xJf - ./usr/share/{pixmaps/gzdoom.png,applications/gzdoom.desktop}
}
post_install() {
vmkdir usr/share/licenses
mv ${PKGDESTDIR}/usr/share/{doc/gzdoom/licenses,licenses/${pkgname}}
vinstall gzdoom.desktop 644 usr/share/applications
vinstall gzdoom.png 644 usr/share/pixmaps
vinstall soundfont/gzdoom.sf2 644 usr/share/gzdoom/soundfonts
}