summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7caa164651724cc5239aa5a68eb6771bf3f9230a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Ian D. Scott <ian@perebruin.com>
# Contributor: John Pate <jkpate@jkpate.net>

pkgname=naev-git
_pkgname=naev
pkgdesc="2d action/rpg space game similar to Escape Velocity, development branch"
pkgver=0.6.0.r140.gff363a4
pkgrel=1
arch=('i686' 'x86_64')
license=('GPL')
url="http://naev.org/"
depends=('sdl2_image' 'sdl2_mixer' 'libxml2' 'freetype2' 'libpng' 'openal' 'libvorbis' 'binutils' 'libgl' 'libzip' 'luajit')
makedepends=('git')
provides=('naev' 'naev-data')
conflicts=('naev' 'naev-data')

source=('git://github.com/naev/naev.git')
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed -r 's/^naev-//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd $srcdir/$_pkgname

  ./autogen.sh
  ./configure --prefix=/usr

  make
}

package() {
  cd "$srcdir/$_pkgname"

  make DESTDIR="$pkgdir" install
}