summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ad59d6dbf9d3a8dc78458ad86bbc5f592102a4db (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
# Maintainer: brent saner <bts@square-r00t.net>
validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B')

pkgname=quake2world-git
pkgver=r2493.f1fb32c
pkgrel=2
pkgdesc="A free, stand-alone, multiplayer-only iteration of Quake2"
arch=('i686' 'x86_64')
url="http://quetoo.org"
license=('GPL')
source=(git+https://github.com/jdolan/quake2world.git)
sha512sums=('SKIP')
depends=('sdl2' 'curl' 'sdl2_image' 'sdl2_mixer')
makedepends=('sdl2' 'sdl2_mixer' 'sdl2_image' 'physfs')
optdepends=(
'quake2world-data-git: the game data files'
)
install=quake2world.install
_pkgname=quake2world

pkgver() {
  cd "${srcdir}/${_pkgname}"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
  cd ${srcdir}/quake2world

  libtoolize
  autoreconf -i
  ./configure --prefix=/usr --without-mysql
  make
  make DESTDIR=${pkgdir} install
}