aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2017-05-12 09:23:35 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-13 03:00:05 +0200
commit0704f00909ba3cb5e172f220aa2f7e81c239f946 (patch)
tree294fd439805d7cdaa5105929defb3c17ad7e58bb
parent0b37691ba4044ae79584022909666447fdfec767 (diff)
downloadaports-0704f00909ba3cb5e172f220aa2f7e81c239f946.tar.bz2
aports-0704f00909ba3cb5e172f220aa2f7e81c239f946.tar.xz
testing/etckeeper: add default_prepare and modernize abuild
-rw-r--r--testing/etckeeper/APKBUILD21
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