summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f24231cbfa05ffa519be92100d18adef03422373 (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
# Maintainer:  Caleb Maclennan <caleb@alerque.com>
# Contributor: Jan Tojnar <jtojnar@gmail.com>

_pkgname='hamster-lib'
pkgname="python-$_pkgname-git"
_branch='develop'
pkgver=0.13.1.r20.gbc34c82
pkgrel=1
pkgdesc="A library for common timetracking functionality"
url="https://github.com/projecthamster/hamster-lib"
depends=('python' 'python-appdirs' 'python-future' 'python-icalendar' 'python-sqlalchemy' 'python-six')
makedepends=('python-setuptools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
license=('GPL3')
arch=('any')
source=("git://github.com/projecthamster/$_pkgname.git#branch=$_branch")
sha256sums=('SKIP')

pkgver() {
	cd "$_pkgname"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	cd "$_pkgname"
	sed -i -e 's/find_packages()/find_packages(exclude=["tests"])/;s/.*configparser.*//g' setup.py
    sed -i -e 's!setup.py install!setup.py install --root="$(DESTDIR)"!g' Makefile
    make install DESTDIR="$pkgdir/"
}