Merge pull request #1146 from larsch/ioquake3-rbp-rpi2

Enable ioquake3-rbp on Raspberry Pi 2
This commit is contained in:
Kevin Mihelich 2015-03-24 20:50:34 -06:00
commit 31d2c25c17

View file

@ -1,12 +1,12 @@
# Maintainer: Jason Plum <jplum@archlinuxarm.org>
buildarch=16 # only rbp
buildarch=20 # only rbp and rbp2
pkgname=ioquake3-rbp
pkgver=20130111
pkgrel=2
pkgrel=3
pkgdesc='ioquake3 for Raspberry Pi'
arch=('armv6h')
arch=('armv6h' 'armv7h')
url='http://ioquake3.org/'
license=('GPLv2')
makedepends=('raspberrypi-firmware' 'sdl' 'git')
@ -20,31 +20,24 @@ source=("ioquake3-build.sh.patch"
'quake3.desktop'
'quake3.launcher'
'quake3ded.launcher'
'ioquake3-rbp::git+git://github.com/raspberrypi/quake3.git'
)
md5sums=('c403c68e59caaaefcccd8ef765528f7c'
'c71fdddccb20e8fc393d846e9c61d685'
'9eca51e2b3ee3e0100944cba436a2a4c'
'eb58a71452a6f1940baa7f3dc9d25c26'
'eb58a71452a6f1940baa7f3dc9d25c26'
)
_gitroot='git://github.com/raspberrypi/quake3.git'
_gitname='master'
'SKIP')
prepare() {
cd "${srcdir}/${pkgname}"
git checkout build.sh
patch build.sh "${srcdir}/ioquake3-build.sh.patch"
}
build() {
cd "${srcdr}"
# clone, depth 1
git clone $_gitroot $pkgname --depth=1
cd "${srcdir}/${pkgname}"
# patch the build.sh
patch build.sh < "${srcdir}/ioquake3-build.sh.patch"
# Extract Patch Files
chmod +x ${srcdir}/pointrelease
${srcdir}/pointrelease --tar xf
sh "${srcdir}/pointrelease" --tar xf
./build.sh
}