summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc7252e9b5442f22c39f2c57d826d8de18ac534b (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
# Maintainer: Artem Klevtsov <a.a.klevtsov@gmail com>

_pkgname=freebloks
pkgname=freebloks-git
pkgver=1.5.r16.g73417b9
pkgrel=1
pkgdesc="Clone of the Blokus board game in 3D with network support"
arch=('x86_64')
url="https://www.saschahlusiak.de/freebloks-3d/"
license=('GPL2')
depends=('libxpm' 'glu')
makedepends=('git')
source=("${_pkgname}::git+https://github.com/shlusiak/Freebloks-3D.git")
sha256sums=('SKIP')
conflicts=("${_pkgname}")
replaces=("${_pkgname}")

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

build() {
  cd "${srcdir}/${_pkgname}"
  autoreconf -i
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${_pkgname}"
  make DESTDIR="${pkgdir}" install
}