obnam package update.

This commit is contained in:
Aleksey Filippov 2013-10-19 09:13:16 +04:00
commit 50b9bde9cb
2 changed files with 56 additions and 0 deletions

18
.SRCINFO Normal file
View file

@ -0,0 +1,18 @@
pkgbase = python2-ttystatus-git
pkgdesc = progress and status updates on terminals for Python
pkgver = 0.0.0
pkgrel = 1
url = http://liw.fi/ttystatus/
arch = i686
arch = x86_64
license = GPL3
makedepends = git
depends = python2
provides = python2-ttystatus
conflicts = python2-ttystatus
replaces = python2-ttystatus-bzr
source = python2-ttystatus-git::git://git.liw.fi/ttystatus
md5sums = SKIP
pkgname = python2-ttystatus-git

38
PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: Aleksey Filippov <sarum9in@gmail.com>
pkgname=python2-ttystatus-git
pkgver=0.0.0
pkgrel=1
pkgdesc="progress and status updates on terminals for Python"
arch=('i686' 'x86_64')
url="http://liw.fi/ttystatus/"
license=('GPL3')
groups=()
depends=('python2')
makedepends=('git')
provides=('python2-ttystatus')
conflicts=('python2-ttystatus')
replaces=('python2-ttystatus-bzr')
backup=()
options=()
install=
source=("$pkgname::git://git.liw.fi/ttystatus")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd "$srcdir/$pkgname"
find . -type f -exec sed -ri "s|^#!/usr/bin/python$|&2|g" '{}' '+'
python2 setup.py build
}
package() {
cd "$srcdir/$pkgname"
python2 setup.py install --root="$pkgdir/" --optimize=1
}
# vim:set ts=2 sw=2 et: