summaryrefslogtreecommitdiff
path: root/pcr/etckeeper/PKGBUILD
blob: 163c320dbb6af083b2a20849e4fe3270f0925640 (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
# Maintainer (Parabola): Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (AUR): Buce <dmbuce@gmail.com>
# Contributor: Danie Roux <accounts@danieroux.com>

# This requires makepkg newer than 4.0.3, which at this time means from git

pkgname=etckeeper
pkgver=0.64
pkgdesc="collection of tools to let /etc be stored in a git, hg, bzr or darcs repository."
url="http://kitenet.net/~joey/code/etckeeper/"
license=('GPL2')

pkgrel=1
arch=('any')
depends=('inetutils' 'python2')
makedepends=('bzr') # bzr must be there at compile time to have bzr support
optdepends=('git' 'hg' 'bzr' 'darcs')
backup=(etc/etckeeper/etckeeper.conf)
source=("etckeeper-$pkgver::git://git.kitenet.net/etckeeper#tag=${pkgver}"
        etckeeper-pacman.patch
        etckeeper-archlinux.conf)

build() {
  cd "$srcdir/etckeeper-$pkgver"

  # add pacman support to list-to `list-installed`
  patch -p0 -i "$srcdir/etckeeper-pacman.patch"

  # use python2
  sed -i 's@^#!/usr/bin/python$@&2@' etckeeper-bzr/__init__.py

  make CONFFILE="$srcdir/etckeeper-archlinux.conf" build
}

package() {
  cd "$srcdir/etckeeper-$pkgver"

  make CONFFILE="$srcdir/etckeeper-archlinux.conf" DESTDIR=$pkgdir install
}

md5sums=('SKIP'
         'f1f00bf9331d1ef7f29b0ac29cdfcbda'
         '99d8d2838f49fa0f2f21c9e37948100d')