# Template file for 'gzdoom' pkgname=gzdoom version=4.11.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 libwebp-devel" short_desc="Advanced Doom source port with OpenGL support" maintainer="Érico Nogueira " 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="44a0aee6fa6b9cc2f5956bb98252708720b03ddf264821c487ce6af07cb204d7 23cec6b75612e106aa32dbf1e44dcddb5cce73d7476ab58da1af9429bcafeed4" 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 }