summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Arnott2016-09-19 13:55:40 +0000
committerColin Arnott2016-09-19 13:55:40 +0000
commitbea9c3840a65f3c7a4172972399c4f56ba082554 (patch)
treed453530ed9c2efc3283c89dba8b9a7b15208aae4
parent59137017d98bbfd45d7150e10041280c0f699b2a (diff)
downloadaur-bea9c3840a65f3c7a4172972399c4f56ba082554.tar.gz
split python-mechanicalsoup and python2-mechanicalsoup
-rw-r--r--PKGBUILD32
1 files changed, 7 insertions, 25 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 25107a0ff1c..d23a37bd0f0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,44 +1,26 @@
-# Maintainer: Jonathan Arnold <jdarnold@archlinux.us>
+# Maintainer: Colin Arnott <colin@urandom.co.uk>
+# Contributer: Jonathan Arnold <jdarnold@archlinux.us>
# Contributor: Zhang Hai <dreaming.in.code.zh@gmail.com>
_pkgname="MechanicalSoup"
-pkgbase=python-mechanicalsoup
-pkgname=('python2-mechanicalsoup' 'python-mechanicalsoup')
+pkgname=python-mechanicalsoup
pkgver=0.4.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=( )
-makedepends=( )
+depends=('python' 'python-beautifulsoup4' 'python-requests' 'python-six')
+makedepends=('python-setuptools')
source=("https://github.com/hickford/MechanicalSoup/archive/v${pkgver}.tar.gz")
sha512sums=('a07e9bda18944c9a5ff1bee4444b53324b99861fe3003c57e933c33bca29bfb6343fdea8a27c70c02d866e478e654016e2f246adb29c0a1536515c5dbf3f6d25')
-build() {
- cd $srcdir
- cp -r ${_pkgname}-$pkgver ${_pkgname}2-$pkgver
-}
-
check() {
cd $srcdir/${_pkgname}-$pkgver
python3 setup.py check
-
- cd $srcdir/${_pkgname}2-$pkgver
- python2 setup.py check
}
-package_python-mechanicalsoup() {
- depends=('python' 'python-beautifulsoup4' 'python-requests' 'python-six')
- makedepends=('python-setuptools')
+package() {
cd $srcdir/${_pkgname}-$pkgver
python3 setup.py install --root "${pkgdir}" --optimize=1
}
-
-package_python2-mechanicalsoup() {
- depends=('python2' 'python2-beautifulsoup4' 'python2-requests' 'python2-six')
- makedepends=('python2-setuptools')
- cd $srcdir/${_pkgname}2-$pkgver
- python2 setup.py install --root "${pkgdir}" --optimize=1
-}
-