summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Brodsky2017-01-24 22:08:10 +0000
committerKevin Brodsky2017-01-24 22:08:26 +0000
commitf6638bc1832fabe5e1e5828af813f836b23bcb9d (patch)
tree40432694fea13b03b3173a62d2357c6c0d029714
parent3fe6bf87c3afaf81c393c29b941acac5b635b260 (diff)
downloadaur-f6638bc1832fabe5e1e5828af813f836b23bcb9d.tar.gz
Version source archives
Add the version number to the downloaded source archives. This talks makepkg into redownloading the sources when there is a new release, instead of keeping the old archive and failing the checksum. This also has the nice side-effect of keeping previous source versions, should one want to downgrade the package. Since upstream does not always bump the version number when releasing new sources, I had to use a trick to make it work. "-rel$srcrel" is appended to the filename, and if new sources of the same version are released, srcrel is incremented (and then reset to 1 when a new version is released). Not beautiful, but it should do the job.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8058e048049..809e95f4c41 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Sat Jan 21 13:15:08 UTC 2017
+# Tue Jan 24 22:08:14 UTC 2017
pkgbase = xnviewmp
pkgdesc = An efficient multimedia viewer, browser and converter.
pkgver = 0.84
@@ -16,9 +16,9 @@ pkgbase = xnviewmp
optdepends = gvfs: support for moving files to trash
source = xnviewmp.desktop
md5sums = 24f44d5a881b94daf48775213a57e4ec
- source_x86_64 = http://download.xnview.com/XnViewMP-linux-x64.tgz
+ source_x86_64 = XnViewMP-linux-x64_0.84-rel1.tgz::http://download.xnview.com/XnViewMP-linux-x64.tgz
md5sums_x86_64 = a1202367f23f32e14a6a0d860564e1da
- source_i686 = http://download.xnview.com/XnViewMP-linux.tgz
+ source_i686 = XnViewMP-linux_0.84-rel1.tgz::http://download.xnview.com/XnViewMP-linux.tgz
md5sums_i686 = 75e9e03aa41da988eb66524574794b31
pkgname = xnviewmp
diff --git a/PKGBUILD b/PKGBUILD
index 57ab5c035ff..b2f99510862 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,6 +9,7 @@
pkgname=xnviewmp
pkgver=0.84
+srcrel=1 # Incremented when there is a new release for the same version number
pkgrel=3
pkgdesc="An efficient multimedia viewer, browser and converter."
url="http://www.xnview.com/en/xnviewmp/"
@@ -18,12 +19,12 @@ license=('custom')
depends=('qt5-multimedia' 'qt5-svg' 'qt5-webkit' 'qt5-x11extras' 'desktop-file-utils')
optdepends=('gvfs: support for moving files to trash')
-source_x86_64=('http://download.xnview.com/XnViewMP-linux-x64.tgz')
-md5sums_x86_64=('a1202367f23f32e14a6a0d860564e1da')
-source_i686=('http://download.xnview.com/XnViewMP-linux.tgz')
-md5sums_i686=('75e9e03aa41da988eb66524574794b31')
source=('xnviewmp.desktop')
+source_x86_64=("XnViewMP-linux-x64_${pkgver}-rel${srcrel}.tgz::http://download.xnview.com/XnViewMP-linux-x64.tgz")
+source_i686=("XnViewMP-linux_${pkgver}-rel${srcrel}.tgz::http://download.xnview.com/XnViewMP-linux.tgz")
md5sums=('24f44d5a881b94daf48775213a57e4ec')
+md5sums_x86_64=('a1202367f23f32e14a6a0d860564e1da')
+md5sums_i686=('75e9e03aa41da988eb66524574794b31')
package() {
install -d -m755 "${pkgdir}/opt/${pkgname}"