summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Arnott2017-12-10 09:33:43 +0000
committerColin Arnott2017-12-10 09:33:43 +0000
commit4fd8a3910553b14d264014b64604500548051768 (patch)
tree05f7c2601f0014d0df328e8d2e065fb623a56529
parent627713312e97162b77b48e5a1a74cbcf74981b3a (diff)
downloadaur-4fd8a3910553b14d264014b64604500548051768.tar.gz
merge in python2 package and simplify
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD26
2 files changed, 29 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ba6666266d6..6dc2c81cee5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,26 @@
# Generated by mksrcinfo v8
-# Sun Dec 10 05:57:30 UTC 2017
+# Sun Dec 10 09:33:28 UTC 2017
pkgbase = python-mechanicalsoup
pkgdesc = A Python library for automating interaction with websites
pkgver = 0.9.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/hickford/MechanicalSoup
arch = any
license = MIT
+ makedepends = python2-setuptools
makedepends = python-setuptools
+ source = https://github.com/hickford/MechanicalSoup/archive/v0.9.0.tar.gz
+ sha512sums = 92c36db4edff18e76f6bfa359d0c8e123c047cb09ba18901939c83ae68efe39fa808b575f9627a12d0b8fb6dbfa89636f532dda30bc9c5e258143c2c42635c48
+
+pkgname = python-mechanicalsoup
depends = python
depends = python-beautifulsoup4
depends = python-requests
depends = python-six
- source = https://github.com/hickford/MechanicalSoup/archive/v0.9.0.tar.gz
- sha512sums = 92c36db4edff18e76f6bfa359d0c8e123c047cb09ba18901939c83ae68efe39fa808b575f9627a12d0b8fb6dbfa89636f532dda30bc9c5e258143c2c42635c48
-pkgname = python-mechanicalsoup
+pkgname = python2-mechanicalsoup
+ depends = python2
+ depends = python2-beautifulsoup4
+ depends = python2-requests
+ depends = python2-six
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
}