diff options
Diffstat (limited to 'testing/etckeeper/APKBUILD')
-rw-r--r-- | testing/etckeeper/APKBUILD | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/testing/etckeeper/APKBUILD b/testing/etckeeper/APKBUILD index 1f9558810c..22ce22de52 100644 --- a/testing/etckeeper/APKBUILD +++ b/testing/etckeeper/APKBUILD @@ -3,7 +3,7 @@ pkgname=etckeeper pkgver=1.18.6 -pkgrel=3 +pkgrel=4 pkgdesc="Store /etc in git." url="http://etckeeper.branchable.com" arch="noarch" @@ -19,23 +19,26 @@ source="$pkgname-$pkgver.tar.gz::https://git.joeyh.name/index.cgi/$pkgname.git/s builddir="$srcdir/$pkgname-$pkgver" prepare() { + default_prepare + cd "$builddir" - sed -i 's|^PYTHON=python$|PYTHON=/bin/false|' Makefile || return 1 - sed -i 's/_PACKAGE_MANAGER=.*/_PACKAGE_MANAGER=apk/' "$builddir"/etckeeper.conf || return 1 + sed -i 's|^PYTHON=python$|PYTHON=/bin/false|' Makefile + sed -i 's/_PACKAGE_MANAGER=.*/_PACKAGE_MANAGER=apk/' etckeeper.conf } package() { cd "$builddir" - make install DESTDIR="$pkgdir" || return 1 - rm -rf "$pkgdir"/lib/systemd || return 1 - rmdir "$pkgdir"/lib/ || return 1 - rm -rf "$pkgdir"/etc/apt || return 1 + + make install DESTDIR="$pkgdir" + rm -rf "$pkgdir"/lib/systemd + rmdir "$pkgdir"/lib/ + rm -rf "$pkgdir"/etc/apt install -m755 -D "$builddir"/debian/cron.daily \ - "$pkgdir"/etc/periodic/daily/"$pkgname" || return 1 + "$pkgdir"/etc/periodic/daily/"$pkgname" install -m755 -D "$srcdir"/apk-commit_hook \ - "$pkgdir"/etc/apk/commit_hooks.d/"$pkgname"|| return 1 + "$pkgdir"/etc/apk/commit_hooks.d/"$pkgname" } sha512sums="a5a3a4677f31cf1d010ab40ed37ce602c71c2e8ebf2273bf8be6dc8209f603ae0fc6a2c0d5d60d9a9d9aa4f3e7b7c0037534890cbc67b38132e5f654abcda04c etckeeper-1.18.6.tar.gz |