2019-09-17 13:47:19 -07:00
|
|
|
_pkgname=quakespasm-spiked
|
|
|
|
pkgname=${_pkgname}-git
|
2019-05-12 11:39:20 -07:00
|
|
|
pkgver=0.92.1.r332.gd7f84a92
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A modern Quake 1 engine. Forked from Quakespasm. AKA QSS. Git version with optional Mission pack desktop files."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://triptohell.info/moodles/qss/"
|
|
|
|
license=('GPL2')
|
2019-09-17 13:47:19 -07:00
|
|
|
depends=('libvorbis' 'libmad' 'flac' 'opusfile' 'libmikmod' 'sdl2')
|
|
|
|
conflicts=('quakespasm-spiked')
|
|
|
|
provides=('quakespasm-spiked')
|
2019-05-12 11:39:20 -07:00
|
|
|
install=$_pkgname.install
|
|
|
|
source=("${_pkgname}::git+https://github.com/Shpoike/Quakespasm"
|
2019-09-17 13:47:19 -07:00
|
|
|
$_pkgname.desktop)
|
2019-05-12 11:39:20 -07:00
|
|
|
sha1sums=('SKIP'
|
2019-09-17 13:47:19 -07:00
|
|
|
'3138e0f57c06e9431d1b030fed0983f5fd7db393')
|
2019-05-12 11:39:20 -07:00
|
|
|
|
|
|
|
pkgver() {
|
2019-09-17 13:47:19 -07:00
|
|
|
cd "$_pkgname"
|
|
|
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
2019-05-12 11:39:20 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2019-09-17 13:47:19 -07:00
|
|
|
cd "$srcdir/$_pkgname/quakespasm/Quake/"
|
|
|
|
make \
|
|
|
|
DO_USERDIRS=1 \
|
|
|
|
USE_SDL2=1 \
|
|
|
|
USE_CODEC_FLAC=1 \
|
|
|
|
USE_CODEC_OPUS=1 \
|
|
|
|
USE_CODEC_MIKMOD=1 \
|
|
|
|
USE_CODEC_UMX=1
|
2019-05-12 11:39:20 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-09-17 13:47:19 -07:00
|
|
|
cd "$srcdir/$_pkgname/quakespasm/Quake/"
|
|
|
|
install -Dm755 quakespasm "$pkgdir"/usr/bin/$_pkgname
|
2019-05-12 11:39:20 -07:00
|
|
|
|
2019-09-17 13:47:19 -07:00
|
|
|
for i in 16 24 32 48 64 72; do
|
|
|
|
install -Dm644 $srcdir/$_pkgname/quakespasm/Misc/QuakeSpasm_512.png $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$_pkgname.png
|
|
|
|
done
|
2019-05-12 11:39:20 -07:00
|
|
|
|
2019-09-17 13:47:19 -07:00
|
|
|
install -Dm644 $srcdir/$_pkgname.desktop $pkgdir/usr/share/applications/$_pkgname.desktop
|
2019-05-12 11:39:20 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|