47 lines
1.9 KiB
Bash
47 lines
1.9 KiB
Bash
# Template file for 'gzdoom'
|
|
pkgname=gzdoom
|
|
version=3.7.2
|
|
revision=1
|
|
_tagdate=2019-01-01
|
|
wrksrc="${pkgname}-g${version}"
|
|
build_style=cmake
|
|
configure_args="-DINSTALL_PK3_PATH=share/gzdoom"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL2-devel gtk+3-devel fluidsynth-devel libgme-devel libgomp-devel ppl-devel"
|
|
depends="libfluidsynth 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="5fb57c83b733d77688b5809b3bd64ab87f0976f4e81d3bbac0ea0785a24646cc
|
|
b5df3cc45ca7358e12f2e491d9682d451223cb409adbf51b6e7b367c1b3c2148"
|
|
skip_extraction="${pkgname}_${version}_amd64.deb"
|
|
nocross=yes
|
|
|
|
case "$XBPS_MACHINE" in
|
|
*-musl)
|
|
configure_args+=" -DCMAKE_CXX_FLAGS=-Wl,-lexecinfo -DCMAKE_EXE_LINKER_FLAGS=-lfts"
|
|
makedepends+=" musl-fts-devel libexecinfo-devel"
|
|
;;
|
|
esac
|
|
|
|
post_extract() {
|
|
ar -p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}_${version}_amd64.deb data.tar.xz |
|
|
tar --strip-components=4 -xJf - ./usr/share/{pixmaps/gzdoom.png,applications/gzdoom.desktop}
|
|
|
|
sed -i "s|GIT_DESCRIPTION|\"${version}\"|g" src/gitinfo.cpp
|
|
sed -i "s|VERSIONSTR|\"${version}\"|g" src/gitinfo.cpp
|
|
sed -i "s|GIT_TIME|\"${_tagdate}\"|g" src/gitinfo.cpp
|
|
sed -i 's|#define SHARE_DIR.*|#define SHARE_DIR "/usr/share/gzdoom/"|' src/posix/i_system.h
|
|
sed -i 's|/usr/share/games/doom|/usr/share/gzdoom|g' 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
|
|
}
|