blob: dbf48f5d629f2ad8740ce2eda6e991bee987480d (
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
|
# Maintainer: Viech <viech unvanquished net>
pkgname=unvanquished-data
pkgver=0.55.1
pkgrel=1
pkgdesc='Game assets for Unvanquished'
arch=(any)
url='https://www.unvanquished.net'
license=(CC-BY-SA-2.5)
makedepends=(aria2)
source=("https://cdn.unvanquished.net/unvanquished_${pkgver}.torrent")
sha256sums=('922fc38985787d97ac37c54f08af2a0f7141aa1b2af36473b309d7728af1b3ef')
# Disable package compression since assets are already compressed.
PKGEXT='.pkg.tar'
prepare() {
# Download the assets via torrent.
aria2c -V --async-dns=false --seed-time=0 "unvanquished_${pkgver}.torrent"
}
check() {
cd "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/"
}
|