blob: dc576f97f87e2078652ec372c378c2ec684484a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Based on quakespasm PKGBUILD
_pkgname=quakespasm
pkgname=${_pkgname}-spiked-git
_branch=qsrebase
pkgver=r1995.033c7c18
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' 'sdl2' 'opus' 'opusfile')
makedepends=('git')
install=${_pkgname}-spiked.install
source=("${_pkgname}::git+https://github.com/Shpoike/Quakespasm#branch=$_branch"
${_pkgname}-spiked.desktop
${_pkgname}-spiked-mp1.desktop
${_pkgname}-spiked-mp2.desktop
${_pkgname}-spiked-impel.desktop)
sha1sums=('SKIP'
'd0daa1b98b041664dd8bf30716da7e49ac6606a2'
'1caecf511611364303a612c06ec9b15f29036e46'
'4006dba3fa8ce322af72b7b4fbb1fc1d1bb07faf'
'336a87e11c1a234adcadfea2d807d26d75bbbca9')
# use number of revisions since beginning of the history as git tagging is broken after switching branch
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${_pkgname}/Quake/"
msg "Starting make..."
make DO_USERDIRS=1 USE_SDL2=1
}
package() {
cd "$srcdir/${_pkgname}/Quake/"
install -Dm755 quakespasm "$pkgdir"/usr/bin/${_pkgname}-spiked
for i in 16 24 32 48 64 72; do
install -Dm644 $srcdir/${_pkgname}/Misc/QuakeSpasm_512.png $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/quakespasm-spiked.png
done
install -Dm644 $srcdir/${_pkgname}-spiked.desktop $pkgdir/usr/share/applications/${_pkgname}-spiked.desktop
#
# Uncomment lines depending on the mission pack(s)
# or extension you have.
#
# install -Dm644 $srcdir/${_pkgname}-spiked-mp1.desktop $pkgdir/usr/share/applications/${_pkgname}-spiked-mp1.desktop
# install -Dm644 $srcdir/${_pkgname}-spiked-mp2.desktop $pkgdir/usr/share/applications/${_pkgname}-spiked-mp2.desktop
# install -Dm644 $srcdir/${_pkgname}-spiked-impel.desktop $pkgdir/usr/share/applications/${_pkgname}-spiked-impel.desktop
}
|