-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
39 lines (35 loc) · 997 Bytes
/
PKGBUILD
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
# Maintainer: Aleksey Filippov <[email protected]>
pkgname=obnam-git
pkgver=4380.bdc923b
pkgrel=1
pkgdesc="Obnam is an easy, secure backup program."
arch=('i686' 'x86_64')
url="http://liw.fi/obnam/"
license=('GPL3')
groups=()
depends=('python2' 'python2-cliapp-git' 'python2-tracing-git' 'python2-larch-git' 'python2-ttystatus-git' 'python2-paramiko')
makedepends=('git' 'python2-yaml')
provides=('obnam')
conflicts=('obnam')
replaces=()
backup=()
options=()
install=
source=("$pkgname::git://git.liw.fi/obnam")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd "$srcdir/$pkgname"
sed -ri 's|python|python2|g' check setup.py README
find . -type f -exec sed -ri 's|^#!/usr/bin/python$|&2|g;s|#!/usr/bin/env python|#!/usr/bin/python2|' '{}' '+'
python2 setup.py build
}
package() {
cd "$srcdir/$pkgname"
python2 setup.py install --root="$pkgdir/" --optimize=1
}
# vim:set ts=2 sw=2 et: