[arch-commits] Commit in snap-sync/trunk (PKGBUILD snap-sync.install)
NicoHood
nicohood at archlinux.org
Sun Jul 1 13:48:26 UTC 2018
Date: Sunday, July 1, 2018 @ 13:48:26
Author: nicohood
Revision: 349410
upgpkg: snap-sync 0.5-1
Added:
snap-sync/trunk/snap-sync.install
Modified:
snap-sync/trunk/PKGBUILD
-------------------+
PKGBUILD | 13 ++++++++-----
snap-sync.install | 17 +++++++++++++++++
2 files changed, 25 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-01 13:31:46 UTC (rev 349409)
+++ PKGBUILD 2018-07-01 13:48:26 UTC (rev 349410)
@@ -2,17 +2,20 @@
# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
# Contributor: Wes Barnett <wes at wbarnett dot us>
pkgname=snap-sync
-pkgver=0.4.2
-pkgrel=3
+pkgver=0.5
+pkgrel=1
pkgdesc="Use snapper snapshots to backup to external drive"
arch=(any)
url="https://github.com/wesbarnett/snap-sync"
license=('GPL2')
depends=(snapper libnotify)
-source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig})
+install='snap-sync.install'
+source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig}
+ 'snap-sync.install')
validpgpkeys=('8535CEF3F3C38EE69555BF67E4B5E45AA3B8C5C3')
-sha512sums=('bc7dc618874f2acc6e15f80960fa45c5703b0da709e3872febe1579d6965907074aca4704dbcc2545261392c1bff977a2b81d2a15e6850fefa3cd7c231f0290c'
- 'SKIP')
+sha512sums=('006c7593a5f345236e6aae6b91d813b8c37521833d347bbccda750b1c398d32fbca25591182ae27cae13c43239e3b13015add46b9aab9592d32e7baa9a71aec2'
+ 'SKIP'
+ '39b4e05794657b880a81d8060f34a6a703db8169b68963aa1cc32e428a7a593b2d65dc6eb1f3fe37b7a0f2967c02113d1368b5d090341ed3856871d141013590')
package() {
cd "${pkgname}"
Added: snap-sync.install
===================================================================
--- snap-sync.install (rev 0)
+++ snap-sync.install 2018-07-01 13:48:26 UTC (rev 349410)
@@ -0,0 +1,17 @@
+_0.5_1_changes() {
+ echo ":: snap-sync added a subvolume id to its snapper snapshots with v5.0."
+ echo " Please checkout the migration guide to update your snapper snapshots:"
+ echo " https://github.com/wesbarnett/snap-sync/releases/tag/0.5"
+}
+
+post_upgrade() {
+ local v upgrades=(
+ 0.5-1
+ )
+
+ for v in "${upgrades[@]}"; do
+ if [[ $(vercmp "$v" "$2") -eq 1 ]]; then
+ "_${v//-/_}_changes"
+ fi
+ done
+}
More information about the arch-commits
mailing list