41 lines
1.5 KiB
Bash
41 lines
1.5 KiB
Bash
# Template file for 'gzdoom'
|
|
pkgname=gzdoom
|
|
version=4.11.3
|
|
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 libwebp-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="5943dba50da20ff94f1fcc415132672d42a15917c571b1c2b7ceefe14935f5d5
|
|
4c544d243dc15fc22000a3b6eabd83fd70f87ea63205a14ff04254c092f74642"
|
|
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
|
|
}
|