[arch-commits] Commit in snap-sync/repos/community-any (3 files)
NicoHood
nicohood at archlinux.org
Sun Jul 1 13:48:37 UTC 2018
Date: Sunday, July 1, 2018 @ 13:48:37
Author: nicohood
Revision: 349411
archrelease: copy trunk to community-any
Added:
snap-sync/repos/community-any/PKGBUILD
(from rev 349410, snap-sync/trunk/PKGBUILD)
snap-sync/repos/community-any/snap-sync.install
(from rev 349410, snap-sync/trunk/snap-sync.install)
Deleted:
snap-sync/repos/community-any/PKGBUILD
-------------------+
PKGBUILD | 43 +++++++++++++++++++++++--------------------
snap-sync.install | 17 +++++++++++++++++
2 files changed, 40 insertions(+), 20 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-01 13:48:26 UTC (rev 349410)
+++ PKGBUILD 2018-07-01 13:48:37 UTC (rev 349411)
@@ -1,20 +0,0 @@
-# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
-# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
-# Contributor: Wes Barnett <wes at wbarnett dot us>
-pkgname=snap-sync
-pkgver=0.4.2
-pkgrel=3
-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})
-validpgpkeys=('8535CEF3F3C38EE69555BF67E4B5E45AA3B8C5C3')
-sha512sums=('bc7dc618874f2acc6e15f80960fa45c5703b0da709e3872febe1579d6965907074aca4704dbcc2545261392c1bff977a2b81d2a15e6850fefa3cd7c231f0290c'
- 'SKIP')
-
-package() {
- cd "${pkgname}"
- make SNAPPER_CONFIG=/etc/conf.d/snapper DESTDIR="${pkgdir}" install
-}
Copied: snap-sync/repos/community-any/PKGBUILD (from rev 349410, snap-sync/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-07-01 13:48:37 UTC (rev 349411)
@@ -0,0 +1,23 @@
+# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
+# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
+# Contributor: Wes Barnett <wes at wbarnett dot us>
+pkgname=snap-sync
+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)
+install='snap-sync.install'
+source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig}
+ 'snap-sync.install')
+validpgpkeys=('8535CEF3F3C38EE69555BF67E4B5E45AA3B8C5C3')
+sha512sums=('006c7593a5f345236e6aae6b91d813b8c37521833d347bbccda750b1c398d32fbca25591182ae27cae13c43239e3b13015add46b9aab9592d32e7baa9a71aec2'
+ 'SKIP'
+ '39b4e05794657b880a81d8060f34a6a703db8169b68963aa1cc32e428a7a593b2d65dc6eb1f3fe37b7a0f2967c02113d1368b5d090341ed3856871d141013590')
+
+package() {
+ cd "${pkgname}"
+ make SNAPPER_CONFIG=/etc/conf.d/snapper DESTDIR="${pkgdir}" install
+}
Copied: snap-sync/repos/community-any/snap-sync.install (from rev 349410, snap-sync/trunk/snap-sync.install)
===================================================================
--- snap-sync.install (rev 0)
+++ snap-sync.install 2018-07-01 13:48:37 UTC (rev 349411)
@@ -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