summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 496f63a128010fddc7b54edcf5bf7b64d2a52e7f (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.3.8.r9579.g166f0ed
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')
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 | 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
}