Date: Monday, June 7, 2021 @ 06:44:37 Author: nicohood Revision: 957032
upgpkg: snap-pac 3.0.1-1 Added: snap-pac/trunk/snap-pac.install Modified: snap-pac/trunk/PKGBUILD ------------------+ PKGBUILD | 22 ++++++++++++++++------ snap-pac.install | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-06-07 06:20:40 UTC (rev 957031) +++ PKGBUILD 2021-06-07 06:44:37 UTC (rev 957032) @@ -3,21 +3,31 @@ # Contributor: Wes Barnett <wes at wbarnett dot us> pkgname=snap-pac -pkgver=2.3.3 +pkgver=3.0.1 pkgrel=1 pkgdesc="Pacman hooks that use snapper to create pre/post btrfs snapshots like openSUSE's YaST" arch=('any') url="https://github.com/wesbarnett/snap-pac" license=('GPL') -depends=('snapper' 'pacman' 'btrfs-progs' 'procps-ng') +depends=('snapper' 'pacman' 'btrfs-progs' 'python') +makedepends=('python-sphinx') +checkdepends=('python-pytest') source=("${pkgname}-${pkgver}.tar.gz::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz" - "${pkgname}-${pkgver}.tar.gz.sig::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz.sig") -backup=('etc/snap-pac.conf') + "${pkgname}-${pkgver}.tar.gz.sig::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz.sig" + "snap-pac.install") +backup=('etc/snap-pac.ini') +install="snap-pac.install" validpgpkeys=('8535CEF3F3C38EE69555BF67E4B5E45AA3B8C5C3' # old key 'F7B28C61944FE30DABEEB0B01070BCC98C18BD66') # new ecc key -sha512sums=('1f300102ea1eeb604556ceb4968eda783971ea2585122cd9d225bd7ecdd88994ec912a92b47b76754c4dde8d8e1f7f257414d9a5870d7831f35c85f29beb5609' - 'SKIP') +sha512sums=('2f564db461650d1afcd2ccc129e65dc30c921525916bbbd40e30bcc9b283bb6b9943a5a44f221bf380b14ba5dfd6e5976d02bc541b6fcde4f8032cc19e16eb90' + 'SKIP' + 'bce2e3bddf43fd4366612c3abc015c352cb8757ed3154a51b1e84c5660d3eed145e069c634049d7f29aa24167411524343b39690c5493390d147ac734c305b88') +check() { + cd "${pkgname}" + make test +} + package() { cd "${pkgname}" make DESTDIR="${pkgdir}" install Added: snap-pac.install =================================================================== --- snap-pac.install (rev 0) +++ snap-pac.install 2021-06-07 06:44:37 UTC (rev 957032) @@ -0,0 +1,21 @@ +_3.0_1_changes() { + echo ":: Config file format changed with version 3.0." + echo " Please adapt your config from /etc/snap-pac.conf to /etc/snap-pac.ini" + echo " https://wesbarnett.github.io/snap-pac/configuration.html" + echo "" + echo " The pre hook got renamed from 00_snapper-pre.hook to hooks/05-snap-pac-pre.hook." + echo " Note the name change if you depend on user-written hooks to be executed before or after the pre hook." + echo " https://github.com/wesbarnett/snap-pac/issues/45" +} + +post_upgrade() { + local v upgrades=( + 3.0-1 + ) + + for v in "${upgrades[@]}"; do + if [[ $(vercmp "$v" "$2") -eq 1 ]]; then + "_${v//-/_}_changes" + fi + done +}