blob: 9e4825941802b10bd77e87c5d95a46c993bed945 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=etckeeper
pkgver=1.18.7
pkgrel=2
pkgdesc="Store /etc in git."
url="http://etckeeper.branchable.com"
arch="noarch"
license="GPL2"
checkdepends="bats fakeroot"
depends="findutils git"
subpackages="$pkgname-doc"
options="!checkroot"
install="$pkgname.post-install $pkgname.pre-deinstall"
source="$pkgname-$pkgver.tar.gz::https://git.joeyh.name/index.cgi/$pkgname.git/snapshot/$pkgname-$pkgver.tar.gz
apk-commit_hook
0001-Work-around-git-commit-s-lack-of-robustness-by-provi.patch
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
cd "$builddir"
sed -i 's|^PYTHON=python$|PYTHON=/bin/false|' Makefile
sed -i 's/_PACKAGE_MANAGER=.*/_PACKAGE_MANAGER=apk/' etckeeper.conf
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
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"
install -m755 -D "$srcdir"/apk-commit_hook \
"$pkgdir"/etc/apk/commit_hooks.d/"$pkgname"
}
sha512sums="44b8f66b95663da1370943128bb5673e57bd7b9df7e727c93baea5dfc79852ebba9d0834827fed19722668849d3ed18b045db5cb42135e198576a2b839523d1a etckeeper-1.18.7.tar.gz
d0ff88615359e8b03da5f9162a7bae3f32c06891a8899096025283d77e950dd72280c6c19b8eb8a4cde08742c6ca715cd32c37c16e8bbf2d030e9fd16a1fc940 apk-commit_hook
d4aa516f7b35c2eddd5c534391fd6363429633aea3b4b2e8e46b1fe192986c79f91bf9e3e808992ce524ffc3ac96cc3952d1a1e7c3b355b7f97ffa9badc8b8d0 0001-Work-around-git-commit-s-lack-of-robustness-by-provi.patch"
|