summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4de1c189a605488debeefd176b6e280702937b07 (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
# Maintainer: brent saner <bts@square-r00t.net>
validpgpkeys=('7482 31EB CBD8 08A1 4F5E  85D2 8C00 4C2F 9348 1F6B')

pkgname=quake2world-data-git
pkgver=r408.1324b25
pkgrel=2
pkgdesc="A free, stand-alone, multiplayer-only iteration of Quake2 (game data)"
arch=('i686' 'x86_64')
url="http://quetoo.org"
license=('GPL')
source=(git+https://github.com/jdolan/quake2world-data.git)
sha512sums=('SKIP')
depends=('quake2world-git')
_pkgname=quake2world-data

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() {
  install -d -m 0755 "${pkgdir}"/usr/share/quake2world
  cp -a ${srcdir}/quake2world-data/target/. ${pkgdir}/usr/share/quake2world
}