summaryrefslogtreecommitdiff
path: root/pcr/etckeeper/PKGBUILD
blob: 87341e195a575e5fcced852eda32d9576bf2e0f7 (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (AUR): Buce <dmbuce@gmail.com>
# Contributor (Arch): Danie Roux <accounts@danieroux.com>
# Contributor (Arch): Diogo Leal <estranho@diogoleal.com>

pkgname=etckeeper
pkgver=1.11
pkgdesc="Collection of tools to let /etc be stored in a git, hg, bzr or darcs repository."
url="http://joeyh.name/code/etckeeper/"
license=('GPL2')

pkgrel=1
arch=('any')
depends=('inetutils' 'python2')
makedepends=('bzr' 'python2') # bzr must be there at compile time to have bzr support
optdepends=('git' 'hg' 'bzr' 'darcs' 'python2: for bzr support')
backup=(etc/etckeeper/etckeeper.conf)

source=("https://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz" $pkgname-archlinux.conf)
md5sums=('75d13168ca79b9f53dfa6c9603924975'
         '99d8d2838f49fa0f2f21c9e37948100d')

mkdepends=('git')
mksource=("$pkgname-$pkgver::git://git.kitenet.net/$pkgname#tag=${pkgver}")
mkmd5sums=('SKIP')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  # use python2
  sed -i 's@^#!/usr/bin/python$@&2@' etckeeper-bzr/__init__.py
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make CONFFILE="${srcdir}/${pkgname}-archlinux.conf" build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

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