diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,6 +1,8 @@ +# Generated by mksrcinfo v8 +# Thu Feb 11 00:29:08 UTC 2016 pkgbase = playbox pkgdesc = A growing collection of board games. - pkgver = 1.6.1 + pkgver = 1.6.3 pkgrel = 1 url = http://sourceforge.net/projects/playbox/ arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Stephen Bell <theredbaron1834 @ yahoo.com> pkgname=playbox pkgrel=1 -pkgver=1.6.1 +pkgver=$(curl https://sourceforge.net/projects/playbox/files/6/ | grep "latest/download?" | sed s'/ /\n/g' | grep title | sed -e 's/title="//g' -e 's/://g' -e 's/\/6\/playbox-//g' -e 's/.linux/\n/g' | head -n 1) pkgdesc="A growing collection of board games." arch=('x86_64') url="http://sourceforge.net/projects/playbox/" @@ -12,7 +12,9 @@ makedepends=('unzip') build() { msg "Grabbing files...." - curl http://sourceforge.net/projects/playbox/files/6/playbox-1.6.1.linux.gtk.x86_64.zip/download -L -o playbox.zip + pkg=$(curl https://sourceforge.net/projects/playbox/files/6/ | grep "latest/download?" | sed s'/ /\n/g' | grep title | sed -e 's/title="//g' -e 's/://g') + pkg=$(echo http://sourceforge.net/projects/playbox/files$pkg/download -L -o playbox.zip) + curl $pkg unzip playbox.zip } |