summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b119130c3ce160e278ed96a74d63851eacf93b2 (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
# Maintainer:  WorMzy Tykashi <wormzy.tykashi@gmail.com>
pkgname=freeserf-git
pkgver=0.1.1_228_g3895cc6
pkgrel=1
pkgdesc="Opensource Settlers 1 clone (requires original game file)"
arch=('i686' 'x86_64')
url="http://jonls.dk/freeserf/"
license=('GPL3')
depends=('sdl2' 'sdl2_mixer')
makedepends=('git')
install=freeserf.install
source=(git+"https://github.com/freeserf/freeserf.git")
md5sums=('SKIP')

pkgver() {
  cd freeserf
  git describe --tags | sed -e 's:^v::' -e 's:-:_:g'
}

prepare() {
  cd freeserf
  ./bootstrap
}
  
build() {
  cd freeserf
  ./configure --prefix="/usr"
  make
}

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