diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 29 insertions, 14 deletions
@@ -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 @@ -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 } |