desktop/python-gitlab/PKGBUILD

25 lines
826 B
Bash
Raw Normal View History

2016-10-31 02:05:55 +08:00
pkgbase=python-gitlab
pkgname=("python2-gitlab" "python3-gitlab")
2017-06-28 16:49:44 +08:00
pkgver=0.21.2
pkgrel=2
2016-10-31 02:05:55 +08:00
pkgdesc=("Python library and CLI tool for the Gitlab API.")
arch=("any")
license=("LGPL")
url=http://python-gitlab.readthedocs.io/
2017-06-28 16:49:44 +08:00
makedepends=('python2' 'python3' 'python2-setuptools' 'python3-setuptools' 'python2-requests' 'python3-requests'
'python2-six' 'python3-six')
2016-10-31 02:05:55 +08:00
source=("https://github.com/gpocentek/${pkgbase}/archive/${pkgver}.tar.gz")
2017-06-28 16:49:44 +08:00
md5sums=('ca35cb400d6876c3437a178a3d2adc96')
2016-10-31 02:05:55 +08:00
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}"
}