diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 12 insertions, 8 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Sat Oct 20 03:01:00 UTC 2018 +# Mon Dec 10 16:26:55 UTC 2018 pkgbase = manager-accounting pkgdesc = Manager is free accounting software for small business - pkgver = 18.10.76 + pkgver = 18.11.66 pkgrel = 1 url = http://www.manager.io/ install = manager-accounting.install @@ -16,7 +16,7 @@ pkgbase = manager-accounting depends = gtk-sharp-3 options = !makeflags source = LICENSE - source = https://mngr.s3.amazonaws.com/18.10.76/manager-accounting.zip + source = https://d2ap5zrlkavzl7.cloudfront.net/18.11.66/manager-accounting.zip source = https://raw.githubusercontent.com/ericsink/SQLitePCL.raw/02ae6a75ba254fe1f6bf27495545b5eac79456ac/sqlite3/sqlite3.c sha256sums = bd144763506372341487683b0f28ad627e7e8923ea8ef8569541b55f4b987061 sha256sums = SKIP @@ -1,11 +1,15 @@ # Maintainer: Jefferson Gonzalez <jgmdev@gmail.com> # Contributor: François M. <francois5537 @ gmail.com> +## Dynamically retrieve the download url +_manager_source=$(wget -o /dev/null http://www.manager.io/desktop/download/ -O - \ + | grep -o -P 'https://.*manager-accounting\.zip' +) + pkgname=manager-accounting -pkgver=`wget -o /dev/null http://www.manager.io/desktop/download/ -O - \ - | grep -o -P 'https://.*\.zip' \ - | grep -o -P '[0-9]+\.[0-9]+\.[0-9]+' \ - | head -1` +pkgver=$(echo "${_manager_source}" \ + | grep -o -P '[0-9]+\.[0-9]+\.[0-9]+' +) pkgrel=1 pkgdesc='Manager is free accounting software for small business' arch=('i686' 'x86_64') @@ -17,7 +21,7 @@ install=manager-accounting.install options=('!makeflags') source=( "LICENSE" - "https://mngr.s3.amazonaws.com/${pkgver}/manager-accounting.zip" + "${_manager_source}" "https://raw.githubusercontent.com/ericsink/SQLitePCL.raw/02ae6a75ba254fe1f6bf27495545b5eac79456ac/sqlite3/sqlite3.c" ) sha256sums=( |