desktop/python-gitlab/PKGBUILD
2017-10-27 00:01:37 +02:00

25 lines
826 B
Bash

pkgbase=python-gitlab
pkgname=("python2-gitlab" "python3-gitlab")
pkgver=0.21.2
pkgrel=2
pkgdesc=("Python library and CLI tool for the Gitlab API.")
arch=("any")
license=("LGPL")
url=http://python-gitlab.readthedocs.io/
makedepends=('python2' 'python3' 'python2-setuptools' 'python3-setuptools' 'python2-requests' 'python3-requests'
'python2-six' 'python3-six')
source=("https://github.com/gpocentek/${pkgbase}/archive/${pkgver}.tar.gz")
md5sums=('ca35cb400d6876c3437a178a3d2adc96')
package_python2-gitlab() {
depends+=("python2" "python2-requests" "python2-six")
cd ${srcdir}/${pkgbase}-${pkgver}
python2 setup.py install --root="${pkgdir}"
}
package_python3-gitlab() {
depends+=("python3" "python3-requests" "python3-six")
cd ${srcdir}/${pkgbase}-${pkgver}
python3 setup.py install --root="${pkgdir}"
}