summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e24bee3590dccafccc9ccf076c71baeddb293510 (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
# Maintainer:  VirtualTam  <virtualtam@flibidi.net>
# Contributor: Uwe Koloska <kolewu@koloro.de>
pkgname=minetestmapper-git
pkgver=6bb818a
pkgrel=1
pkgdesc="Minetest map generator"
arch=('armv7h' 'i686' 'x86_64')
url="http://wiki.minetest.net/Minetestmapper"
license=('LGPL')
depends=('gd' 'leveldb' 'postgresql-libs' 'sqlite')
makedepends=('cmake' 'git')
provides=('minetestmapper')
_gitname="minetestmapper"
source=(git://github.com/minetest/minetestmapper.git)
sha256sums=(SKIP)

pkgver() {
  cd ${_gitname}
  git describe --always | sed 's|-|.|g'
}

build(){
  cd ${_gitname}
  cmake . -DENABLE_LEVELDB=1 -DCMAKE_INSTALL_PREFIX="/usr/" -DCUSTOM_SHAREDIR="/usr/share/${_gitname}"
  make
}

package() {
  cd ${_gitname}
  make DESTDIR="${pkgdir}" install
}