diff options
Diffstat (limited to 'linhes')
-rw-r--r-- | linhes/clean-chroot-manager/PKGBUILD | 26 | ||||
-rw-r--r-- | linhes/clean-chroot-manager/ccm.install | 28 |
2 files changed, 54 insertions, 0 deletions
diff --git a/linhes/clean-chroot-manager/PKGBUILD b/linhes/clean-chroot-manager/PKGBUILD new file mode 100644 index 0000000..55b231d --- /dev/null +++ b/linhes/clean-chroot-manager/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: graysky <therealgraysky AT protonmail DOT com> + +pkgname=clean-chroot-manager +pkgver=2.222 +pkgrel=1 +pkgdesc='Wrapper for managing clean chroot builds with local repo therein.' +arch=('any') +url='https://github.com/graysky2/clean-chroot-manager' +license=('MIT') +depends=('devtools>=20190821-1' 'rsync' 'libarchive>=3.3.3' 'pacman>=5.2') +conflicts=('clean_chroot_manager') +replaces=('clean_chroot_manager') +source=("$pkgname-$pkgver.tar.gz::https://github.com/graysky2/clean-chroot-manager/archive/v$pkgver.tar.gz") +b2sums=('3a485e87fa06e7af4a14cd0c45748a810ec593abb33455de1608059a8335a1e0577bebb64cb46043f1600f1d88be125c0497f03534a3e130c5f07734a0f968b1') +install=ccm.install + +build() { + cd "$pkgname-$pkgver" + make +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + install -Dm644 MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/linhes/clean-chroot-manager/ccm.install b/linhes/clean-chroot-manager/ccm.install new file mode 100644 index 0000000..e36c57f --- /dev/null +++ b/linhes/clean-chroot-manager/ccm.install @@ -0,0 +1,28 @@ +## arg 1: the new package version +## arg 2: the old package version + +post_upgrade() { + # define the versions for which a change is needed + for test in 2.92-1 2.87-1 2.81-1 2.73-1 2.72-1 2.55-1 2.17-1 2.22-1 2.69-1 2.93-1 2.101-1 2.201-1 2.202-1 2.208-1 2.212-1 2.213-1 2.221-1; do + if [ "$(vercmp $2 $test)" -lt 0 ]; then + cat <<END + +>>> New features/changes have been made with this release. + Check \$XDG_CONFIG_HOME/clean-chroot-manager.conf against + /usr/share/clean-chroot-manager/ccm.skel to ensure it is updated! + +END + fi + done + + for test in 2.217-1; do + if [ "$(vercmp $2 $test)" -lt 0 ]; then + cat <<END + +>>> WARNING: Changes to this release require some users to nuke any existing + buildroot before using ccm with this release! + +END + fi + done +} |