Add clean-chroot-manager

This commit is contained in:
Travis Burtrum 2017-03-29 08:42:49 -04:00
parent bbb667b080
commit 1eb0645394
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# Maintainer: graysky <graysky AT archlinux DOT us>
pkgname='clean-chroot-manager'
pkgver=2.87
pkgrel=1
pkgdesc='Wrapper scripts for managing clean chroots (64-bit and 32-bit).'
arch=('any')
url='https://github.com/graysky2/clean-chroot-manager'
license=('MIT')
depends=('devtools' 'rsync')
conflicts=('clean_chroot_manager')
replaces=('clean_chroot_manager')
source=("http://repo-ck.com/source/$pkgname/$pkgname-$pkgver.tar.xz")
sha256sums=('bd314651616147c6bc3266fe64ee885974922655813ca3c36b13b2823e71b6c7')
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"
}

View File

@ -0,0 +1,16 @@
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
for test in 2.81-1 2.73-1 2.72-1 2.55-1 2.17-1 2.22-1 2.69-1; do
if [ "$(vercmp $2 $test)" -lt 1 ]; then
echo
echo '--> Please check ~/.config/clean-chroot-manager.conf against the'
echo '--> provided /usr/share/clean-chroot-manager/ccm.skel to ensure it is'
echo '--> updated as the script does not do this automatically.'
exit 0
else
/bin/true
fi
done
}