diff options
author | Vianney le Clément de Saint-Marcq | 2015-12-07 10:54:08 +0100 |
---|---|---|
committer | Vianney le Clément de Saint-Marcq | 2015-12-07 10:54:08 +0100 |
commit | 8bfb9c5d4f225ae6579b596128676af7da59faba (patch) | |
tree | fc6b897a436d0f252fa062dc38618c7559231c6f | |
parent | 7784edca4776b7b4908015cbbc542ae3c5802211 (diff) | |
download | aur-8bfb9c5d4f225ae6579b596128676af7da59faba.tar.gz |
Automatically download latest beta
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 10 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = smartscope-beta pkgdesc = SmartScope App (Beta version) pkgver = 2015.1203.20.25 - pkgrel = 1 + pkgrel = 2 url = https://www.lab-nation.com/ arch = x86_64 arch = i686 @@ -12,9 +12,9 @@ pkgbase = smartscope-beta depends = libusb provides = smartscope conflicts = smartscope - source = smartscope-beta.deb::https://www.lab-nation.com/package/smartscope/2015/1203/20/25/linux/get + source = smartscope-beta.deb::https://www.lab-nation.com/package/smartscope/linux/latest_unstable/get source = smartscope.sh - md5sums = 3862a6ad8a6a280ee5a2ae485a61506b + md5sums = SKIP md5sums = 3d877cb9f75a3ef8887e1f81b69e8007 pkgname = smartscope-beta @@ -1,6 +1,6 @@ pkgname=smartscope-beta pkgver=2015.1203.20.25 -pkgrel=1 +pkgrel=2 pkgdesc="SmartScope App (Beta version)" arch=('x86_64' 'i686') url="https://www.lab-nation.com/" @@ -10,13 +10,15 @@ conflicts=('smartscope') provides=('smartscope') makedepends=('tar') -_pkgver=$(echo ${pkgver} | sed 's@\.@/@g') - -source=("$pkgname.deb::https://www.lab-nation.com/package/smartscope/${_pkgver}/linux/get" +source=("${pkgname}.deb::https://www.lab-nation.com/package/smartscope/linux/latest_unstable/get" 'smartscope.sh') -md5sums=('3862a6ad8a6a280ee5a2ae485a61506b' +md5sums=('SKIP' '3d877cb9f75a3ef8887e1f81b69e8007') +pkgver() { + tar -xzOf control.tar.gz ./control | sed -n 's/^Version: //p' +} + package() { cd "${srcdir}" tar -xJvf data.tar.xz -C "${pkgdir}" |