diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-02-24 01:10:34 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-02-24 01:10:34 (GMT) |
commit | a1194020eb87c3dafe6c4b7b44fc0408f97ad7be (patch) | |
tree | a9ed55c3d927f3ae38bf1874cca689b0a654e043 /abs/core/python_modules/python-gitpython/PKGBUILD | |
parent | 55793b362bbd7f2a9379fd5cad3aaea164fca390 (diff) | |
download | linhes_pkgbuild-a1194020eb87c3dafe6c4b7b44fc0408f97ad7be.zip linhes_pkgbuild-a1194020eb87c3dafe6c4b7b44fc0408f97ad7be.tar.gz linhes_pkgbuild-a1194020eb87c3dafe6c4b7b44fc0408f97ad7be.tar.bz2 |
python-gitpython: update to 2.1.8
Diffstat (limited to 'abs/core/python_modules/python-gitpython/PKGBUILD')
-rw-r--r-- | abs/core/python_modules/python-gitpython/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-gitpython/PKGBUILD b/abs/core/python_modules/python-gitpython/PKGBUILD new file mode 100644 index 0000000..3c6807e --- /dev/null +++ b/abs/core/python_modules/python-gitpython/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de> +# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161 +# Contributor: brent s. <bts[at]square-r00t[dot]net> + +_pkgname=python-gitpython +_pypiname=GitPython +pkgbase=python-gitpython +pkgdesc="A python library used to interact with Git repositories" +pkgname=('python-gitpython' 'python2-gitpython') +pkgver=2.1.8 +pkgrel=1 +url="https://github.com/gitpython-developers/gitpython" +license=('BSD') +arch=("any") +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') +source=("${_pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/G/${_pypiname}/${_pypiname}-${pkgver}.tar.gz" + "${_pkgname}-${pkgver}.tar.gz.asc::https://pypi.org/packages/source/G/${_pypiname}/${_pypiname}-${pkgver}.tar.gz.asc") +sha512sums=('9ddef0c9c1b99b3c554257c913efa1e0928fd8bdedae3c9fbbc261d337ed73a62472f3d47c9f55812f5e4c7abb9ea04fb03a6818984060b7847948d75dc2b98a' + 'SKIP') +validpgpkeys=('2CF6E0B51AAF73F09B1C21174D1DA68C88710E60') # Sebastian Thiel (In Rust I trust!) <byronimo@gmail.com> + +prepare() { + cp -a "${srcdir}/${_pypiname}-${pkgver}"{,-py2} +} + +build() { + cd "${srcdir}/${_pypiname}-${pkgver}" + python setup.py build + + cd "${srcdir}/${_pypiname}-${pkgver}-py2" + python2 setup.py build +} + +package_python-gitpython() { + depends=('python' 'python-gitdb>=2.0.0') + + cd "${srcdir}/${_pypiname}-${pkgver}" + python setup.py install --skip-build --root="${pkgdir}" --optimize=1 + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-gitpython() { + depends=('python2' 'python2-gitdb>=2.0.0') + + cd "${srcdir}/${_pypiname}-${pkgver}-py2" + python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1 + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |