summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: faa86afea8cd02851622586e42f5bfa4e660dcac (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
# Maintainer: Desmond Kabus <desmond.kabus@protonmail.com>

pkgbase=python-remind-git
pkgname=python-remind-git
_module='remind'
pkgver=0.15.0.r3.g8891d75
pkgrel=1
pkgdesc="Remind Python library"
url="https://github.com/jspricke/python-remind"
depends=('remind' 'python' 'python-dateutil' 'python-pytz' 'python-tzlocal' 'python-vobject')
makedepends=('python-setuptools' 'git')
checkdepends=('python-coverage' 'python-nose')
provides=('python-remind')
conflicts=('python-remind')
license=('GPL')
arch=('any')
source=("remind::git+https://github.com/jspricke/python-remind")
md5sums=('SKIP')

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

check(){
    cd "${srcdir}/${_module}"
    nosetests
}

build() {
    cd "${srcdir}/${_module}"
    python setup.py build
}

package() {
    cd "${srcdir}/${_module}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}