diff options
author | Jan Cholasta | 2016-12-27 18:38:46 +0100 |
---|---|---|
committer | Jan Cholasta | 2016-12-27 20:50:31 +0100 |
commit | ede5e50c16df1a2801ba3bbded4adcd96290c13f (patch) | |
tree | eb4b687be86c4643c95ff5db077da361368f4d29 | |
parent | 5b407b56ab7cc87bfc140738e6815d6ff91946cf (diff) | |
download | aur-ede5e50c16df1a2801ba3bbded4adcd96290c13f.tar.gz |
gzdoom-git-2.3pre.1078.g8708c69f8
* Build with the last fmodex version by default
* nasm is no longer required
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 11 insertions, 22 deletions
@@ -1,6 +1,6 @@ pkgbase = gzdoom-git pkgdesc = Advanced Doom source port with OpenGL support (git version) - pkgver = 2.2pre.1644.gded479b + pkgver = 2.3pre.1078.g8708c69f8 pkgrel = 1 url = http://www.zdoom.org/ arch = i686 @@ -16,7 +16,7 @@ pkgbase = gzdoom-git makedepends = imagemagick makedepends = xdg-utils depends = fluidsynth - depends = fmodex4.26.36 + depends = fmodex=4.44.62 depends = gtk2 depends = libgl depends = libgme @@ -44,7 +44,6 @@ pkgbase = gzdoom-git source = launcher.desktop sha256sums = SKIP sha256sums = 59122e670f72aa2531aff370e7aaab2d886a7642e79e91f27a533d3b4cad4f6d - makedepends_i686 = nasm pkgname = gzdoom-git @@ -1,9 +1,7 @@ # Maintainer: Jan Cholasta <grubber at grubber cz> -# Build with the recommended fmodex version: -_fmodex=fmodex4.26.36 -# Build with the currently installed fmodex version: -#_fmodex=$(LC_ALL=C pacman -Q fmodex | sed -r 's/ /=/;s/-.*$//') +# Build with fmodex: +_fmodex=fmodex # Build without fmodex: #_fmodex= @@ -14,16 +12,14 @@ _openal=openal _name=gzdoom pkgname=${_name}-git -pkgver=2.2pre.1644.gded479b +pkgver=2.3pre.1078.g8708c69f8 pkgrel=1 -_label='GZDoom' -_desc='Advanced Doom source port with OpenGL support' -pkgdesc="${_desc} (git version)" +pkgdesc='Advanced Doom source port with OpenGL support (git version)' arch=('i686' 'x86_64') url='http://www.zdoom.org/' license=('BSD' 'custom:BUILD' 'custom:doom' 'custom:dumb' 'LGPL') depends=('fluidsynth' - ${_fmodex} + ${_fmodex:+$(LC_ALL=C pacman -Q $_fmodex | sed -r 's/ /=/;s/-.*$//')} 'gtk2' 'libgl' 'libgme' @@ -36,7 +32,6 @@ makedepends=('cmake' 'git' 'imagemagick' 'xdg-utils') -makedepends_i686=('nasm') optdepends=('blasphemer-wad: Blasphemer (free Heretic) game data' 'chexquest3-wad: Chex Quest 3 game data' 'doom1-wad: Doom shareware game data' @@ -65,15 +60,15 @@ pkgver() { git describe --long --tags --match '[Gg]*' | sed -r 's/^[Gg]//;s/([^-]*-g)/\1/;s/-/./g' } -prepare() { +build() { cd "${_srcsubdir}" local _nofmod _noopenal _fmodincdir _fmodlib if [[ -n "${_fmodex}" ]]; then _nofmod=OFF - _fmodincdir=$(LC_ALL=C pacman -Ql ${_fmodex%=*} | grep -Eo '/usr/include/fmodex[^/]*/$') - _fmodlib=$(LC_ALL=C pacman -Ql ${_fmodex%=*} | grep -Eo '/usr/lib/libfmodex-[^/]*\.so$') + _fmodincdir=$(LC_ALL=C pacman -Ql $_fmodex | grep -Eo '/usr/include/fmodex[^/]*/$') + _fmodlib=$(LC_ALL=C pacman -Ql $_fmodex | grep -Eo '/usr/lib/libfmodex-[^/]*\.so$') else _nofmod=ON fi @@ -94,18 +89,13 @@ prepare() { -DCMAKE_CXX_FLAGS="$CXXFLAGS -DSHARE_DIR=\\\"/usr/share/${_name}\\\"" \ -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS -Wl,-z,noexecstack" \ . -} - -build() { - cd "${_srcsubdir}" + make cat >"${_name}.sh" <<EOF #!/bin/sh exec /usr/lib/${_name}/${_name} "\$@" EOF - make - sed -n '/\*\*-/,/\*\*-/p' 'src/version.h' >'bsd.txt' cp "${srcdir}/launcher.desktop" "${_name}.desktop" |