summaryrefslogtreecommitdiffstats
path: root/testing/xonotic-data/APKBUILD
blob: c02400e09a5ea764880084356715f2fca485b254 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=xonotic-data
pkgver=0.5.0
pkgrel=0
pkgdesc="data files for Xonotic"
url="http://www.xonotic.org/"
arch="noarch"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://dl.xonotic.org/xonotic-${pkgver}.zip"

_builddir=${srcdir}/Xonotic
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
}

package() {
	mkdir -p "$pkgdir"/usr/share/xonotic/
	mv "$srcdir"/Xonotic/data "$pkgdir"/usr/share/xonotic/
}

md5sums="cdadb384ccf9cad926bb377312832c2f  xonotic-0.5.0.zip"