summaryrefslogtreecommitdiff
path: root/pcr/nexuiz-data/PKGBUILD
blob: 2f8aca6bc27cc3846f29e49f3784f44a4b198c97 (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
# Maintainer (AUR): Andrei Alexeyev <akari@alienslab.net>

# parabola changes and rationale:
#  no changes.

pkgname=nexuiz-data
pkgver=2.5.2
pkgrel=1
epoch=1
arch=('any')
pkgdesc="Fast-paced multiplayer first-person shooter (data files only)."
url="http://www.alientrap.com/games/nexuiz/"
license=("GPL")
depends=()
makedepends=('unzip')
conflicts=('nexuiz')
_zipfile="${pkgname%%-data}-${pkgver//./}.zip"
source=("https://downloads.sourceforge.net/project/nexuiz/NexuizRelease/Nexuiz%20${pkgver}/${_zipfile}")
noextract=("${_zipfile}")
sha256sums=('a5e27ebcc9775c4a490d0d3536c32e4a8f8f96b038c0b6a78d1823c37a962000')

# Prevent compressing final package
PKGEXT='.pkg.tar'

package() {
    install -dm755 "${pkgdir}/usr/share/nexuiz"
    unzip -j "${_zipfile}" Nexuiz/data/common-spog.pk3 Nexuiz/data/data20091001.pk3 -d "${pkgdir}/usr/share/nexuiz/data"
    find "${pkgdir}/usr/share/nexuiz" -type f -exec chmod 644 {} \;
}