summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorclintval2018-01-20 14:34:58 -0800
committerclintval2018-01-20 14:34:58 -0800
commitba4972fc51f6c3a29ee9fbc5a026f7a85af29018 (patch)
treed156113b420ed09ca6d51d5b4bf51d9d9bafc239
parent03b8f40d05038aae00f15829928c3030ab60cd5e (diff)
downloadaur-ba4972fc51f6c3a29ee9fbc5a026f7a85af29018.tar.gz
python-curses-menu to split package
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD50
2 files changed, 54 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a64dbb860d0..e968cc09746 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,23 @@
pkgbase = python-curses-menu
pkgdesc = A simple console menu system using curses in Python
pkgver = 0.5.0
- pkgrel = 1
+ pkgrel = 2
url = https://pypi.python.org/pypi/curses-menu
- arch = x86_64
+ arch = any
license = MIT
- checkdepends = python-tox
- makedepends = python-pytest-runner
+ makedepends = python
makedepends = python-setuptools
- depends = python
+ makedepends = python2
+ makedepends = python2-setuptools
options = !emptydirs
- source = https://pypi.python.org/packages/3b/7d/82f1492afd33f92e64d44d51f65eff4c39382642cfced65d5748a770bb8f/curses-menu-0.5.0.zip
- md5sums = 2415e53e7834dba1c97ac1e3839e45eb
+ source = python-curses-menu-0.5.0.zip::https://pypi.python.org/packages/3b/7d/82f1492afd33f92e64d44d51f65eff4c39382642cfced65d5748a770bb8f/curses-menu-0.5.0.zip
+ sha256sums = 29c45e2f16283833e2940fac0fd64e948f2ff603d3e11f510c5bd2b946cd8981
pkgname = python-curses-menu
+ checkdepends = python-tox
+ depends = python
+
+pkgname = python2-curses-menu
+ checkdepends = python2-tox
+ depends = python2
diff --git a/PKGBUILD b/PKGBUILD
index 344da5e47d8..38ce555e621 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,52 @@
# Maintainer: Clint Valentine <valentine.clint@gmail.com>
-pkgname='python-curses-menu'
+_name=curses-menu
+pkgbase='python-curses-menu'
+pkgname=('python-curses-menu' 'python2-curses-menu')
pkgver=0.5.0
-pkgrel=1
+pkgrel=2
pkgdesc="A simple console menu system using curses in Python"
-arch=('x86_64')
+arch=('any')
url="https://pypi.python.org/pypi/curses-menu"
license=('MIT')
-depends=('python')
-checkdepends=('python-tox')
-makedepends=('python-pytest-runner' 'python-setuptools')
+makedepends=(
+ 'python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
options=(!emptydirs)
-source=("https://pypi.python.org/packages/3b/7d/82f1492afd33f92e64d44d51f65eff4c39382642cfced65d5748a770bb8f/curses-menu-${pkgver}.zip")
-md5sums=('2415e53e7834dba1c97ac1e3839e45eb')
+source=("${pkgname}"-"${pkgver}".zip::https://pypi.python.org/packages/3b/7d/82f1492afd33f92e64d44d51f65eff4c39382642cfced65d5748a770bb8f/curses-menu-0.5.0.zip)
+sha256sums=('29c45e2f16283833e2940fac0fd64e948f2ff603d3e11f510c5bd2b946cd8981')
+
+prepare() {
+ cp -a "${_name}"-"${pkgver}"{,-py2}
+}
package() {
- cd "${srcdir}/curses-menu-${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-curses-menu() {
+ depends=('python2')
+ checkdepends=('python2-tox')
+
+ cd "${_name}"-"${pkgver}"-py2
+ python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+}
+
+package_python-curses-menu() {
+ depends=('python')
+ checkdepends=('python-tox')
+
+ cd "${_name}"-"${pkgver}"
+ python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+}