desktop/naev/PKGBUILD

58 lines
1.5 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>
pkgbase=naev
pkgname=(naev naev-data)
2016-05-14 01:25:08 +08:00
pkgver=0.6.1
pkgrel=1
pkgdesc="2D action/rpg space game."
2016-05-14 01:25:08 +08:00
arch=('x86_64')
url="http://blog.naev.org/"
screenshot="http://blog.naev.org/wp-content/gallery/media/bigplanet.png"
2016-05-14 01:25:08 +08:00
depends=('glu' 'binutils' 'freetype2' 'libgl' 'libzip' 'libpng' 'libvorbis' 'libxml2' 'openal' 'sdl_image' 'sdl_mixer')
makedepends=('freeglut')
2012-03-07 19:00:46 +08:00
categories=('games')
changelog=ChangeLog
source=("http://downloads.sourceforge.net/project/$pkgbase/$pkgbase-$pkgver/$pkgbase-$pkgver.tar.bz2"
2016-05-14 01:25:08 +08:00
"http://downloads.sourceforge.net/project/$pkgbase/$pkgbase-$pkgver/ndata-$pkgver.zip")
noextract=("ndata-$pkgver.zip")
md5sums=('6cbdcbfa945ce5268bbd751f54082b9c'
'f24d79d23b29fbef70dff2cc0f4605be')
build() {
cd $srcdir/$pkgname-$pkgver
./configure \
--prefix=/usr \
--enable-debug \
--with-ndata-path=/usr/share/$pkgbase/data
make
}
package_naev() {
depends=( "${depends[@]}" naev-data )
conflicts=('naev-dev')
license=('GPL3')
cd $srcdir/$pkgname-$pkgver
# Main.
make DESTDIR=$pkgdir install
# License:
mkdir -p $pkgdir/usr/share/licenses/$pkgbase/
install -m644 $srcdir/$pkgbase-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgbase/
}
package_naev-data() {
arch=('any')
depends=()
license=('custom: mixture of public domain, GPLv2, GPLv3, CC:BY 3.0, CC:BY-SA 3.0')
mkdir -p $pkgdir/usr/share/$pkgbase/
2016-05-14 01:25:08 +08:00
install -m644 $srcdir/ndata-$pkgver.zip $pkgdir/usr/share/$pkgbase/data
}