summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorColin Arnott2017-12-10 09:33:43 +0000
committerColin Arnott2017-12-10 09:33:43 +0000
commit4fd8a3910553b14d264014b64604500548051768 (patch)
tree05f7c2601f0014d0df328e8d2e065fb623a56529 /PKGBUILD
parent627713312e97162b77b48e5a1a74cbcf74981b3a (diff)
downloadaur-4fd8a3910553b14d264014b64604500548051768.tar.gz
merge in python2 package and simplify
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 17 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c152afe0fca..1f60998a47f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,25 +2,33 @@
# Contributer: Jonathan Arnold <jdarnold@archlinux.us>
# Contributor: Zhang Hai <dreaming.in.code.zh@gmail.com>
-_pkgname="MechanicalSoup"
-pkgname=python-mechanicalsoup
+pkgbase=python-mechanicalsoup
+pkgname=(python-mechanicalsoup python2-mechanicalsoup)
pkgver=0.9.0
-pkgrel=1
+pkgrel=2
pkgdesc="A Python library for automating interaction with websites"
arch=('any')
url="https://github.com/hickford/MechanicalSoup"
license=('MIT')
-depends=('python' 'python-beautifulsoup4' 'python-requests' 'python-six')
-makedepends=('python-setuptools')
+makedepends=('python2-setuptools' 'python-setuptools')
source=("https://github.com/hickford/MechanicalSoup/archive/v${pkgver}.tar.gz")
sha512sums=('92c36db4edff18e76f6bfa359d0c8e123c047cb09ba18901939c83ae68efe39fa808b575f9627a12d0b8fb6dbfa89636f532dda30bc9c5e258143c2c42635c48')
check() {
- cd $srcdir/${_pkgname}-$pkgver
+ cd $srcdir/MechanicalSoup-$pkgver
python3 setup.py check
}
-package() {
- cd $srcdir/${_pkgname}-$pkgver
- python3 setup.py install --root "${pkgdir}" --optimize=1
+package_python2-mechanicalsoup() {
+ depends=('python2' 'python2-beautifulsoup4' 'python2-requests' 'python2-six')
+ cd $srcdir/MechanicalSoup-$pkgver
+
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python-mechanicalsoup() {
+ depends=('python' 'python-beautifulsoup4' 'python-requests' 'python-six')
+ cd $srcdir/MechanicalSoup-$pkgver
+
+ python setup.py install --root="$pkgdir/" --optimize=1
}