summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorclintval2018-01-21 16:29:21 -0800
committerclintval2018-01-21 16:29:21 -0800
commitfd1821c7ffb7547e2c47e4739264a553fe8655d2 (patch)
treeaab3c3a7b63b5f8a3796874b04fb1d2a81f49ba9
parent18206cbf8e29c37098fb8a9cbede5221bb073e63 (diff)
downloadaur-fd1821c7ffb7547e2c47e4739264a553fe8655d2.tar.gz
python-memozied-property to split package
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD48
2 files changed, 50 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ed94a7d005f..e85df6168de 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,21 @@
pkgbase = python-memoized-property
pkgdesc = Python decorator for defining properties that only run their fget function once
pkgver = 1.0.3
- pkgrel = 2
+ pkgrel = 3
url = https://pypi.python.org/pypi/memoized-property
arch = any
license = BSD
+ makedepends = python
makedepends = python-setuptools
- depends = python
- source = https://pypi.python.org/packages/70/db/23f8b5d86c9385299586c2469b58087f658f58eaeb414be0fd64cfd054e1/memoized-property-1.0.3.tar.gz
- md5sums = ae9bf3ef40b9a08a4f1798fb322c6865
+ makedepends = python2
+ makedepends = python2-setuptools
+ options = !emptydirs
+ source = python-memoized-property-1.0.3.tar.gz::https://pypi.python.org/packages/70/db/23f8b5d86c9385299586c2469b58087f658f58eaeb414be0fd64cfd054e1/memoized-property-1.0.3.tar.gz
+ sha256sums = 4be4d0209944b9b9b678dae9d7e312249fe2e6fb8bdc9bdaa1da4de324f0fcf5
pkgname = python-memoized-property
+ depends = python
+
+pkgname = python2-memoized-property
+ depends = python2
diff --git a/PKGBUILD b/PKGBUILD
index b8678a0b5c7..0653fb65c67 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,50 @@
# Maintainer: Clint Valentine <valentine.clint@gmail.com>
-pkgname='python-memoized-property'
+_name=memoized-property
+pkgbase='python-memoized-property'
+pkgname=('python-memoized-property' 'python2-memoized-property')
pkgver=1.0.3
-pkgrel=2
+pkgrel=3
pkgdesc="Python decorator for defining properties that only run their fget function once"
arch=('any')
url="https://pypi.python.org/pypi/memoized-property"
license=('BSD')
-depends=('python')
-optdepends=()
-makedepends=('python-setuptools')
-ptions=(!emptydirs)
-source=("https://pypi.python.org/packages/70/db/23f8b5d86c9385299586c2469b58087f658f58eaeb414be0fd64cfd054e1/memoized-property-${pkgver}.tar.gz")
-md5sums=('ae9bf3ef40b9a08a4f1798fb322c6865')
+makedepends=(
+ 'python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+options=(!emptydirs)
+source=("${pkgname}"-"${pkgver}".tar.gz::https://pypi.python.org/packages/70/db/23f8b5d86c9385299586c2469b58087f658f58eaeb414be0fd64cfd054e1/memoized-property-1.0.3.tar.gz)
+sha256sums=('4be4d0209944b9b9b678dae9d7e312249fe2e6fb8bdc9bdaa1da4de324f0fcf5')
+
+prepare() {
+ cp -a "${_name}"-"${pkgver}"{,-py2}
+}
package() {
- cd "${srcdir}/memoized-property-${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-memoized-property() {
+ depends=('python2')
+
+ cd "${_name}"-"${pkgver}"-py2
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+ python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+}
+
+package_python-memoized-property() {
+ depends=('python')
+
+ cd "${_name}"-"${pkgver}"
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+ python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+}