summaryrefslogtreecommitdiff
path: root/pcr/bup/PKGBUILD
blob: eeea2b5217bddb7abf32a4776741d4f25db09e8c (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
# Contributor (Arch): Bram Schoenmakers <me@bramschoenmakers.nl>
# Contributor (Arch): henning mueller <henning@orgizm.net>
# Maintainer : Parabola GNU / Linux-libre Aurélien Desbrières <aurelien@cwb.io>

# If you'd like to have documentation, please set the variable below to 1.
# This implies installing pandoc, which in turn depends on many Haskell packages.
# Which you can build if you wish.
_havedocs=0

pkgname=bup
pkgver=0.25rc1
_pkgver=0.25-rc1
pkgrel=2
pkgdesc="Backup tool using git pack files."
arch=('i686' 'x86_64' 'mips64el')
url="http://github.com/apenwarr/bup"
license=('GPL')
depends=('python2-fuse' 'par2cmdline' 'python' 'git')
[ $_havedocs = 1 ] && makedepends=('haskell-pandoc')
source=("https://github.com/apenwarr/${pkgname}/archive/${pkgname}-${_pkgver}.tar.gz")

build() {
  cd "${srcdir}/${pkgname}-${pkgname}-${_pkgver}"

  find . -name \*.py | xargs sed -i 's:env python:env python2:'
  sed -i 's:PYTHON=python:PYTHON=python2:' Makefile

  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgname}-${_pkgver}"
  make DESTDIR=$pkgdir install
}