diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -1,7 +1,7 @@ # Maintainer: Viech <viech unvanquished net> pkgname=unvanquished-data -pkgver=0.50.0 +pkgver=0.51.1 pkgrel=1 _gitver="archlinux/${pkgver}-${pkgrel}" @@ -11,8 +11,8 @@ arch=('any') url='http://www.unvanquished.net' license=('GPL3') -makedepends=('aria2>=1.18.7-2' 'sed') # XXX dependency on sed for workaround below -source=("https://github.com/Unvanquished/Unvanquished/raw/${_gitver}/download-pk3-torrent.sh") +makedepends=('aria2>=1.18.7-2') +source=("https://github.com/Unvanquished/Unvanquished/raw/${_gitver}/download-dpk-torrent.sh") # disable package compression since assets are already compressed PKGEXT='.pkg.tar' @@ -20,7 +20,7 @@ PKGEXT='.pkg.tar' build() { cd "${srcdir}" - chmod +x download-pk3-torrent.sh + chmod +x download-dpk-torrent.sh } package() { @@ -35,7 +35,7 @@ package() { # attempt to copy existing assets from the system, so they aren't redownloaded if [ -d /usr/share/unvanquished/pkg ]; then echo "Copying existing assets from the system..." - cp -r /usr/share/unvanquished/pkg/*.pk3 "${pkgdir}/usr/share/unvanquished/pkg/" || true + cp -r /usr/share/unvanquished/pkg/*.dpk "${pkgdir}/usr/share/unvanquished/pkg/" || true fi # make the download script aware of copied assets, so it will remove unneeded ones @@ -44,11 +44,8 @@ package() { # remove old aria2 progress files in case the torrent itself was updated rm -f "${srcdir}/cache/"*".aria2" - # XXX work around a bug in aria2/GnuTLS https handling by using http for now - sed -i 's,https,http,' download-pk3-torrent.sh - # download new or modified assets - ./download-pk3-torrent.sh "${pkgdir}/usr/share/unvanquished/pkg/" "${srcdir}/cache" "${pkgver}" + ./download-dpk-torrent.sh "${pkgdir}/usr/share/unvanquished/pkg/" "${srcdir}/cache" "${pkgver}" } -md5sums=('bb2d205411ab0b05e755abe06e8d38b3') +md5sums=('a53bcb79af17ca7b7050a62bd023f814') |