51 lines
1.9 KiB
Bash
51 lines
1.9 KiB
Bash
# Template file for 'gzdoom'
|
|
pkgname=gzdoom
|
|
version=4.4.2
|
|
revision=1
|
|
_tagdate=2020-06-16
|
|
wrksrc="${pkgname}-g${version}"
|
|
build_style=cmake
|
|
configure_args="-DINSTALL_PK3_PATH=share/gzdoom"
|
|
hostmakedepends="pkg-config tar xz"
|
|
makedepends="SDL2-devel gtk+3-devel fluidsynth-devel libgme-devel libgomp-devel
|
|
ppl-devel ZMusic-devel"
|
|
depends="gtk+3"
|
|
short_desc="Advanced Doom source port with OpenGL support"
|
|
maintainer="Michael Straube <straubem@gmx.de>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.zdoom.org"
|
|
distfiles="https://github.com/coelckers/${pkgname}/archive/g${version}.tar.gz
|
|
https://github.com/coelckers/${pkgname}/releases/download/g${version}/${pkgname}_${version}_amd64.deb"
|
|
checksum="d0ede9aefa8834b6d97a8a5336e57077475f43c297447f75b37550ee93010674
|
|
ccff299967bd47c8154d3af835fe514df29fc0560831437074a4b5ada674e6ba"
|
|
skip_extraction="${pkgname}_${version}_amd64.deb"
|
|
nocross=yes
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
makedepends+=" musl-fts-devel libexecinfo-devel"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*) configure_args+=" -DSSE_MATTERS=true" ;;
|
|
esac
|
|
|
|
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}
|
|
|
|
vsed -e "s|GIT_DESCRIPTION|\"${version}\"|g" -i src/gitinfo.cpp
|
|
vsed -e "s|VERSIONSTR|\"${version}\"|g" -i src/gitinfo.cpp
|
|
vsed -e "s|GIT_TIME|\"${_tagdate}\"|g" -i src/gitinfo.cpp
|
|
vsed -e 's|#define SHARE_DIR.*|#define SHARE_DIR "/usr/share/gzdoom/"|' \
|
|
-i src/common/platform/posix/i_system.h
|
|
vsed -e 's|/usr/share/games/doom|/usr/share/gzdoom|g' -i src/gameconfigfile.cpp
|
|
}
|
|
|
|
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
|
|
}
|