diff --git a/PKGBUILD b/PKGBUILD index 330257a..a1aaf52 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,3 @@ -# Maintainer: Frederic Bezies < fredbezies at gmail dot com > - pkgname=quakespasm pkgver=0.93.1 pkgrel=1 @@ -7,43 +5,34 @@ pkgdesc="A modern Quake 1 engine. Forked from Fitzquake. Stable version with opt arch=('i686' 'x86_64') url="http://quakespasm.sourceforge.net" license=('GPL2') -depends=('libvorbis' 'libmad' 'sdl2') +depends=('libvorbis' 'libmad' 'flac' 'opusfile' 'sdl2') conflicts=('quakespasm-svn') install=$pkgname.install source=(https://sourceforge.net/projects/quakespasm/files/Source/$pkgname-$pkgver.tgz - $pkgname.desktop - $pkgname-mp1.desktop - $pkgname-mp2.desktop - $pkgname-impel.desktop) + $pkgname.desktop) sha1sums=('aca08d7bea6085bc7b755fad1e83ef976b542c1e' - '7a78889a7a6e24047b4777a8b4827e29cfc87381' - '2b774f68f889308ba0b8de69580a32ed11f833ec' - '1184a40775fc46c129828d4a9a35785542c62ee3' - '2c97f722fc5c9f8d8f1a9a01f55491a448a9253e') + '7a78889a7a6e24047b4777a8b4827e29cfc87381') build() { - cd "$srcdir/$pkgname-$pkgver/Quake/" - msg "Starting make..." - make DO_USERDIRS=1 USE_SDL2=1 + cd "$srcdir/$pkgname-$pkgver/Quake/" + make \ + DO_USERDIRS=1 \ + USE_SDL2=1 \ + USE_CODEC_FLAC=1 \ + USE_CODEC_OPUS=1 \ + USE_CODEC_MIKMOD=1 \ + USE_CODEC_UMX=1 } package() { - cd "$srcdir/$pkgname-$pkgver/Quake/" - install -Dm755 quakespasm "$pkgdir"/usr/bin/$pkgname - - for i in 16 24 32 48 64 72; do - install -Dm644 $srcdir/$pkgname-$pkgver/Misc/QuakeSpasm_512.png $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/quakespasm.png - done + cd "$srcdir/$pkgname-$pkgver/Quake/" + install -Dm755 quakespasm "$pkgdir"/usr/bin/$pkgname - install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop -# -# Uncomment lines depending on the mission pack(s) -# or extension you have. -# -# install -Dm644 $srcdir/$pkgname-mp1.desktop $pkgdir/usr/share/applications/$pkgname-mp1.desktop -# install -Dm644 $srcdir/$pkgname-mp2.desktop $pkgdir/usr/share/applications/$pkgname-mp2.desktop -# install -Dm644 $srcdir/$pkgname-impel.desktop $pkgdir/usr/share/applications/$pkgname-impel.desktop + for i in 16 24 32 48 64 72; do + install -Dm644 $srcdir/$pkgname-$pkgver/Misc/QuakeSpasm_512.png $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/quakespasm.png + done + install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop } diff --git a/quakespasm-impel.desktop b/quakespasm-impel.desktop deleted file mode 100644 index 0b17efb..0000000 --- a/quakespasm-impel.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Quake - Abyss of Pandemonium -Icon=quakespasm -Exec=quakespasm -game impel -Categories=Game;Shooter; -Comment=Quake (quakespasm engine) + Abyss of Pandemonium -Terminal=false -StartupNotify=true diff --git a/quakespasm-mp1.desktop b/quakespasm-mp1.desktop deleted file mode 100644 index f6d881e..0000000 --- a/quakespasm-mp1.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Quake - MP 1 -Icon=quakespasm -Exec=quakespasm -game hipnotic -Categories=Game;Shooter; -Comment=Quake (quakespasm engine) + Mission Pack 1 -Terminal=false -StartupNotify=true diff --git a/quakespasm-mp2.desktop b/quakespasm-mp2.desktop deleted file mode 100644 index 1f6f87e..0000000 --- a/quakespasm-mp2.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Quake - MP 2 -Icon=quakespasm -Exec=quakespasm -game rogue -Categories=Game;Shooter; -Comment=Quake (quakespasm engine) + Mission Pack 2 -Terminal=false -StartupNotify=true