desktop/openarena/PKGBUILD

89 lines
3.0 KiB
Bash
Raw Normal View History

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
2012-03-10 20:18:01 +08:00
pkgbase=openarena
pkgname=(openarena openarena-data)
pkgver=0.8.8
pkgrel=3
pkgdesc="A violent, sexy, multiplayer first person shooter based on the ioquake3 engine"
arch=('i686' 'x86_64')
url="http://openarena.ws/"
2012-03-10 20:18:01 +08:00
screenshot="http://openarena.ws/e107_images/custom/085-3.jpg"
license=('GPL2')
2012-03-10 20:51:31 +08:00
makedepends=('curl' 'libvorbis' 'mesa' 'openal' 'sdl')
2012-03-07 19:00:46 +08:00
categories=('games')
2012-03-10 20:18:01 +08:00
source=(http://download.tuxfamily.org/$pkgbase/rel/081/oa081.zip
http://download.tuxfamily.org/$pkgbase/rel/085/oa085p.zip
http://178.63.102.135/svens_stuff/oa088p.zip
$url/svn/source/081/$pkgbase-engine-0.8.1-1.tar.bz2
$pkgbase.png::http://projects.archlinux.org/svntogit/community.git/plain/trunk/openarena.png?h=packages/openarena
$pkgbase-server.png::http://projects.archlinux.org/svntogit/community.git/plain/trunk/openarena-server.png?h=packages/openarena
$pkgbase.desktop::http://projects.archlinux.org/svntogit/community.git/plain/trunk/openarena.desktop?h=packages/openarena
$pkgbase-server.desktop::http://projects.archlinux.org/svntogit/community.git/plain/trunk/openarena-server.desktop?h=packages/openarena)
md5sums=('49006bcb02b4e8ea3d06749e8f4e4887'
'b2a0437da751cd50dd2351ed9e0c4e9d'
2012-03-10 20:18:01 +08:00
'45da37955eba40cfd0e6e0f89cbb4b61'
'4ee696eacc4b0350f9dbb5588dcd74a2'
'c69f824dc500d436fc631b78b6a62dc8'
'17e2f4fa060ed97ff6fe1eaff647bcfb'
'229c87648c10e48b523c25d24aba8372'
'00649517a4dd08cd9c6e99d6703f01f1')
build() {
2012-03-10 20:18:01 +08:00
cd $srcdir/$pkgbase-engine-0.8.1
2012-03-10 20:18:01 +08:00
# Fix arch.
_ARCH=$CARCH
if [[ $_ARCH = i686 ]]; then _ARCH=i386; fi
2012-03-10 20:18:01 +08:00
make ARCH=$_ARCH \
DEFAULT_BASEDIR=/usr/share/$pkgbase \
BUILD_CLIENT_SMP=0 \
USE_LOCAL_HEADERS=0 \
GENERATE_DEPENDENCIES=0 \
OPTIMIZE=
}
2012-03-10 20:18:01 +08:00
package_openarena() {
pkgrel=3
2012-03-10 20:51:31 +08:00
depends=('curl' 'libvorbis' 'openarena-data' 'sdl')
2012-03-10 20:18:01 +08:00
optdepends=('openal')
cd $srcdir/$pkgbase-engine-0.8.1
2012-03-10 20:18:01 +08:00
# Needed folders.
install -d $pkgdir/usr/{bin,share/{$pkgbase,applications,pixmaps}}
2012-03-10 20:18:01 +08:00
# Fix arch.
_ARCH=$CARCH
if [[ $_ARCH = i686 ]]; then _ARCH=i386; fi
2012-03-10 20:18:01 +08:00
make \
COPYDIR=$pkgdir/usr/share/$pkgbase \
ARCH=$_ARCH \
copyfiles
# Executables.
mv -f $pkgdir/usr/share/$pkgbase/$pkgbase.$_ARCH $pkgdir/usr/bin/$pkgbase
mv -f $pkgdir/usr/share/$pkgbase/oa_ded.$_ARCH $pkgdir/usr/bin/$pkgbase-server
find $pkgdir/usr/share -type f -exec chmod 644 {} +
2012-03-10 20:18:01 +08:00
# Desktop Integration.
install -m 644 $srcdir/$pkgbase{,-server}.png $pkgdir/usr/share/pixmaps/
install -m 644 $srcdir/$pkgbase{,-server}.desktop $pkgdir/usr/share/applications/
}
2012-03-10 20:18:01 +08:00
package_openarena-data() {
2012-03-10 20:51:31 +08:00
pkgrel=1
2012-03-10 20:18:01 +08:00
pkgdesc="Data files for Open Arena (openarena package)."
2012-03-10 20:27:05 +08:00
arch=(any)
2012-03-10 20:18:01 +08:00
# Data:
install -d $pkgdir/usr/share/$pkgbase/
cp -rf $srcdir/$pkgbase-0.8.1/{baseoa,missionpack}/ $pkgdir/usr/share/$pkgbase/
find $pkgdir/usr/share -type f -exec chmod 644 {} +
}