quakespasm-spiked-git/PKGBUILD

46 lines
1.2 KiB
Bash
Raw Permalink Normal View History

_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')
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"
$_pkgname.desktop)
2019-05-12 11:39:20 -07:00
sha1sums=('SKIP'
2019-09-17 13:52:43 -07:00
'6d8bcc899c2a666614f7a3b6b1fc5c39c4bb801e')
2019-05-12 11:39:20 -07:00
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
2019-05-12 11:39:20 -07:00
}
build() {
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() {
cd "$srcdir/$_pkgname/quakespasm/Quake/"
install -Dm755 quakespasm "$pkgdir"/usr/bin/$_pkgname
2019-05-12 11:39:20 -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
install -Dm644 $srcdir/$_pkgname.desktop $pkgdir/usr/share/applications/$_pkgname.desktop
2019-05-12 11:39:20 -07:00
}