summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 557f15c02b092ceb016be71b413b7e42cf084a69 (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
# Maintainer: Viech <viech unvanquished net>

pkgname=unvanquished-data
pkgver=0.54.1
pkgrel=1
pkgdesc='Game assets for Unvanquished.'
arch=('any')
url='https://www.unvanquished.net'
license=('GPL3')
makedepends=('aria2')
source=("https://cdn.unvanquished.net/unvanquished_${pkgver}.torrent")
md5sums=('b05674a4905426259f856f7403788b69')

# Disable package compression since assets are already compressed.
PKGEXT='.pkg.tar'

prepare() {
	cd "${srcdir}"

	# Download the assets via torrent.
	aria2c -V --async-dns=false --seed-time=0 "unvanquished_${pkgver}.torrent"
}

check() {
	cd "${srcdir}/unvanquished_${pkgver}/pkg/"

	md5sum -c md5sums
}

package() {
	install -d -m 755 "${pkgdir}/usr/share/unvanquished/pkg/"
	install    -m 644 "${srcdir}/unvanquished_${pkgver}/pkg/"*".dpk" \
	                  "${pkgdir}/usr/share/unvanquished/pkg/"
}