summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorclintval2018-01-21 16:54:21 -0800
committerclintval2018-01-21 16:54:21 -0800
commitffbdb68d8a71731dffda8f56fc44244d293d32aa (patch)
treebe8500c05dcde2c7b72858e20a1db39c0e3f21cc
parent732d3e38f1f5d03eb92c043cdfc4a80f521a765d (diff)
downloadaur-ffbdb68d8a71731dffda8f56fc44244d293d32aa.tar.gz
python-progressbar to split package
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD50
2 files changed, 52 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bc4277030a1..4b4f0964437 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,21 @@
pkgbase = python-progressbar33
pkgdesc = Text progress bar library for Python
pkgver = 2.4
- pkgrel = 1
+ pkgrel = 2
url = https://pypi.python.org/pypi/progressbar33
arch = any
- license = Apache-2.0
+ license = Apache
+ makedepends = python
makedepends = python-setuptools
- depends = python
- source = https://pypi.python.org/packages/71/fc/7c8e01f41a6e671d7b11be470eeb3d15339c75ce5559935f3f55890eec6b/progressbar33-2.4.tar.gz
- md5sums = 94c114ea62aaae93489848f5bdb0bbe7
+ makedepends = python2
+ makedepends = python2-setuptools
+ options = !emptydirs
+ source = python-progressbar33-2.4.tar.gz::https://pypi.python.org/packages/71/fc/7c8e01f41a6e671d7b11be470eeb3d15339c75ce5559935f3f55890eec6b/progressbar33-2.4.tar.gz
+ sha256sums = 51fe0d9b3b4023db2f983eeccdfc8c9846b84db8443b9bee002c7f58f4376eff
pkgname = python-progressbar33
+ depends = python
+
+pkgname = python2-progressbar33
+ depends = python2
diff --git a/PKGBUILD b/PKGBUILD
index 44c81b771cd..e416290b349 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,50 @@
# Maintainer: Clint Valentine <valentine.clint@gmail.com>
-pkgname='python-progressbar33'
+_name=progressbar33
+pkgbase='python-progressbar33'
+pkgname=('python-progressbar33' 'python2-progressbar33')
pkgver=2.4
-pkgrel=1
+pkgrel=2
pkgdesc="Text progress bar library for Python"
arch=('any')
url="https://pypi.python.org/pypi/progressbar33"
-license=('Apache-2.0')
-depends=('python')
-optdepends=()
-makedepends=('python-setuptools')
-ptions=(!emptydirs)
-source=("https://pypi.python.org/packages/71/fc/7c8e01f41a6e671d7b11be470eeb3d15339c75ce5559935f3f55890eec6b/progressbar33-${pkgver}.tar.gz")
-md5sums=('94c114ea62aaae93489848f5bdb0bbe7')
+license=('Apache')
+makedepends=(
+ 'python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+options=(!emptydirs)
+source=("${pkgname}"-"${pkgver}".tar.gz::https://pypi.python.org/packages/71/fc/7c8e01f41a6e671d7b11be470eeb3d15339c75ce5559935f3f55890eec6b/progressbar33-2.4.tar.gz)
+sha256sums=('51fe0d9b3b4023db2f983eeccdfc8c9846b84db8443b9bee002c7f58f4376eff')
+
+prepare() {
+ cp -a "${_name}"-"${pkgver}"{,-py2}
+}
package() {
- cd "${srcdir}/progressbar33-${pkgver}"
+ cd "${srcdir}"/"${_name}"-"${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1
}
+
+build(){
+ cd "${srcdir}"/"${_name}"-"${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}"/"${_name}"-"${pkgver}"-py2
+ python2 setup.py build
+}
+
+package_python2-progressbar33() {
+ depends=('python2')
+
+ cd "${_name}"-"${pkgver}"-py2
+ python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE.txt
+}
+
+package_python-progressbar33() {
+ depends=('python')
+
+ cd "${_name}"-"${pkgver}"
+ python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE.txt
+}