2011-06-06 06:06:19 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
# source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
|
|
|
pkgname=naev
|
2012-03-07 07:37:22 +08:00
|
|
|
pkgver=0.5.1
|
2011-06-06 06:06:19 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="2D action/rpg space game."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://code.google.com/p/naev/"
|
|
|
|
license=('custom: code: GPLv3; media: mixture of public domain, GPLv2, GPLv3, CC:BY 3.0, CC:BY-SA 3.0')
|
|
|
|
depends=('freetype2' 'libgl' 'libpng' 'libvorbis' 'libxml2' 'openal' 'sdl_image' 'sdl_mixer')
|
|
|
|
makedepends=('freeglut')
|
|
|
|
conflicts=('naev-dev')
|
|
|
|
changelog=ChangeLog
|
|
|
|
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"
|
|
|
|
"http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver/ndata-$pkgver")
|
2012-03-07 07:37:22 +08:00
|
|
|
md5sums=('a5fea2f4e0fef23d8932167b568d1868'
|
|
|
|
'9cab0bce7a4dcb7cdc840fc60da5ed1f')
|
2011-06-06 06:06:19 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-debug \
|
|
|
|
--with-ndata-path=/usr/share/naev/data
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
|
|
|
|
# Main.
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
|
|
|
|
# Media:
|
|
|
|
mkdir -p $pkgdir/usr/share/naev/
|
|
|
|
install -m644 $srcdir/ndata-$pkgver $pkgdir/usr/share/naev/data
|
|
|
|
|
|
|
|
# License:
|
|
|
|
mkdir -p $pkgdir/usr/share/licenses/naev/
|
|
|
|
install -m644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/naev/
|
|
|
|
}
|