summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristian Hesse2016-05-18 21:43:53 +0200
committerChristian Hesse2016-05-18 21:43:53 +0200
commit7153e1094c1426eb31422bd5bfdf9a17c5e24ab2 (patch)
tree8bc806c1b4272fd100e5e837da5c879b4a9ebf82 /PKGBUILD
parente6f38c79ca1df2991e3e7dc4a40023ccbe302009 (diff)
downloadaur-7153e1094c1426eb31422bd5bfdf9a17c5e24ab2.tar.gz
commit etckeeper-git 1.18.3.r27.geeae1aa-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 12 insertions, 19 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9322da73993..16d9ec0b277 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,8 +4,8 @@
# Contributor: Danie Roux <accounts@danieroux.com>
pkgname=etckeeper-git
-pkgver=1.18.1.r0.gc1bfd1a
-pkgrel=3
+pkgver=1.18.3.r27.geeae1aa
+pkgrel=1
pkgdesc='collection of tools to let /etc be stored in a git, hg or bzr repository - git checkout'
arch=('any')
url='http://kitenet.net/~joey/code/etckeeper/'
@@ -17,20 +17,21 @@ makedepends=('mercurial' 'bzr')
optdepends=('mercurial: use mercurial for version control'
'bzr: use bazaar for version control')
backup=('etc/etckeeper/etckeeper.conf')
-source=('git://git.kitenet.net/etckeeper'
- 'etckeeper.service'
- 'etckeeper.timer')
-sha256sums=('SKIP'
- 'b92c15e4e2d7211ded184dccf3d4b219031eef4bc5fbe0b8d294e8c0f61195fd'
- '256326aaaf5ce44a1b965e102cccd0cba433a76444ad9053428fb9f16428b8e5')
+source=('git://git.kitenet.net/etckeeper')
+sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/etckeeper/"
if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
- echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
+ printf '%s.r%s.g%s' \
+ "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
+ "$(git rev-list --count ${GITTAG}..)" \
+ "$(git log -1 --format='%h')"
else
- echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
+ printf '0.r%s.g%s' \
+ "$(git rev-list --count master)" \
+ "$(git log -1 --format='%h')"
fi
}
@@ -41,10 +42,7 @@ build() {
sed -i '/^PYTHON=/c PYTHON=python2' Makefile
sed -i '1s/python/python2/' zypper-etckeeper.py
- # install path for bash-completion
- sed -i '/bash_completion/s|$(etcdir)/bash_completion.d|${prefix}/share/bash-completion/completions|' Makefile
-
- # This does not exist, but we do not want the apt stuff installed.
+ # We want pacman :D
sed -i -e "/^LOWLEVEL_PACKAGE_MANAGER/c LOWLEVEL_PACKAGE_MANAGER=pacman" \
-e "/^HIGHLEVEL_PACKAGE_MANAGER/c HIGHLEVEL_PACKAGE_MANAGER=pacman" etckeeper.conf
}
@@ -53,10 +51,5 @@ package() {
cd "${srcdir}/etckeeper/"
make DESTDIR=${pkgdir} install
-
- # autocommit timer
- install -D -m0755 debian/cron.daily ${pkgdir}/usr/bin/etckeeper-autocommit
- install -D -m0644 ${srcdir}/etckeeper.service ${pkgdir}/usr/lib/systemd/system/etckeeper.service
- install -D -m0644 ${srcdir}/etckeeper.timer ${pkgdir}/usr/lib/systemd/system/etckeeper.timer
}