Remove chmod, move git repo to source

This commit is contained in:
Lars Christensen 2015-03-24 21:09:13 +01:00
parent 35aaafac8c
commit 2a5f5c4b06

View file

@ -4,7 +4,7 @@ buildarch=20 # only rbp and rbp2
pkgname=ioquake3-rbp
pkgver=20130111
pkgrel=2
pkgrel=3
pkgdesc='ioquake3 for Raspberry Pi'
arch=('armv6h' 'armv7h')
url='http://ioquake3.org/'
@ -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
}