summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChris Warrick2015-06-06 13:23:24 +0200
committerChris Warrick2015-06-06 13:23:24 +0200
commit725f0f95e9863465f2f6b48b497d5f132319e110 (patch)
treee3c00c05da35eb84a397081e80c05015dd31635b /PKGBUILD
parent23e6c1ffe1cbb1943cbabd68a7d3a94c0a9d4599 (diff)
downloadaur-725f0f95e9863465f2f6b48b497d5f132319e110.tar.gz
split package
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 20 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 62b939aa6e9..6a5886c28eb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,6 @@
# Maintainer: Chris Warrick <aur@chriswarrick.com>
-pkgname=python-pyroma
+pkgbase=python-pyroma
+pkgname=('python-pyroma' 'python2-pyroma')
_pyname=pyroma
pkgver=1.8.1
pkgrel=1
@@ -7,15 +8,29 @@ pkgdesc="Test your project's packaging friendliness"
arch=('any')
url='https://bitbucket.org/regebro/pyroma'
license=('MIT')
-depends=('python' 'python-docutils' 'python-setuptools')
+makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
options=(!emptydirs)
-source=("http://pypi.python.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
+source=("https://pypi.python.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('d9d471be51bae92619a37d6edfdff89d')
-package() {
+prepare() {
+ cd "${srcdir}/${_pyname}-${pkgver}"
+ cp -r "${srcdir}/${_pyname}-${pkgver}" "${srcdir}/${_pyname}-${pkgver}-py2"
+}
+
+package_python-pyroma() {
+ depends=('python' 'python-setuptools' 'python-docutils')
cd "${srcdir}/${_pyname}-${pkgver}"
python3 setup.py install --root="${pkgdir}/" --optimize=1
- install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE"
+ ln -s ${_pyname} "${pkgdir}/usr/bin/${_pyname}3"
+}
+
+package_python2-pyroma() {
+ depends=('python2' 'python2-setuptools' 'python2-docutils')
+ cd "${srcdir}/${_pyname}-${pkgver}-py2"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+ mv "${pkgdir}/usr/bin/${_pyname}" "${pkgdir}/usr/bin/${_pyname}2"
}
# vim:set ts=2 sw=2 et: