summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a2eacd45dfd4fa6555330882d049e1f19a65d36 (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.19.1.r1.g197d723
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
}