[arch-commits] Commit in pacredir/trunk (PKGBUILD pacredir.install)
Christian Hesse
eworm at archlinux.org
Sat May 13 20:25:36 UTC 2017
Date: Saturday, May 13, 2017 @ 20:25:35
Author: eworm
Revision: 227918
upgpkg: pacredir 0.3.0-1
new upstream release
Modified:
pacredir/trunk/PKGBUILD
pacredir/trunk/pacredir.install
------------------+
PKGBUILD | 4 ++--
pacredir.install | 8 ++++++++
2 files changed, 10 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-13 20:07:21 UTC (rev 227917)
+++ PKGBUILD 2017-05-13 20:25:35 UTC (rev 227918)
@@ -2,7 +2,7 @@
# Maintainer: Christian Hesse <mail at eworm.de>
pkgname=pacredir
-pkgver=0.2.2
+pkgver=0.3.0
pkgrel=1
pkgdesc='redirect pacman requests, assisted by avahi service discovery'
arch=('i686' 'x86_64')
@@ -16,7 +16,7 @@
backup=('etc/pacredir.conf' 'etc/pacman.d/pacredir')
validpgpkeys=('BD84DE71F493DF6814B0167254EDC91609BC9183') # Christian Hesse <mail at eworm.de>
source=("https://www.eworm.de/download/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.asc})
-sha256sums=('d00d9cc7b9c2b93a1813a97cced00b3b502dc6db4cac5346e3afa1e7464e1e7c'
+sha256sums=('7b31c99cf84eeb49d44f1a7d45d4fd0fe1f07f4c64e3667549700eb81edb8ced'
'SKIP')
build() {
Modified: pacredir.install
===================================================================
--- pacredir.install 2017-05-13 20:07:21 UTC (rev 227917)
+++ pacredir.install 2017-05-13 20:25:35 UTC (rev 227918)
@@ -4,3 +4,11 @@
echo " > For instructions visit: https://github.com/eworm-de/pacredir#usage"
}
+post_upgrade() {
+ # return if old package version greater 0.3...
+ (( $(vercmp $2 '0.3') > 0 )) && return
+
+ # upgrade from pre-0.3 version, avahi service names changed
+ echo " > This upgrade from pacredir $2 to pacredir $1 changes avahi service"
+ echo " > names. Make sure to update all your installations for compatibility."
+}
More information about the arch-commits
mailing list