[arch-commits] Commit in python-bleach/trunk (PKGBUILD)
Johannes Löthberg
demize at archlinux.org
Sat Mar 18 23:35:06 UTC 2017
Date: Saturday, March 18, 2017 @ 23:35:05
Author: demize
Revision: 217200
upgpkg: python-bleach 2.0.0-1
Modified:
python-bleach/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-03-18 23:12:03 UTC (rev 217199)
+++ PKGBUILD 2017-03-18 23:35:05 UTC (rev 217200)
@@ -2,8 +2,8 @@
pkgbase=python-bleach
pkgname=(python-bleach python2-bleach)
-pkgver=1.5.0
-pkgrel=5
+pkgver=2.0.0
+pkgrel=1
pkgdesc="An easy whitelist-based HTML-sanitizing tool"
url="http://pypi.python.org/pypi/bleach"
@@ -15,18 +15,11 @@
'python2'
'python2-setuptools')
-source=("python-bleach-$pkgver.tar.gz::https://pypi.org/packages/source/b/bleach/bleach-$pkgver.tar.gz"
- "html5lib-python-0.9999999.tar.gz::https://github.com/html5lib/html5lib-python/archive/0.9999999.tar.gz"
- "0001-Make-bleach-allow-for-vendored-html5lib-version.patch")
+source=("python-bleach-$pkgver.tar.gz::https://pypi.org/packages/source/b/bleach/bleach-2.0.0.tar.gz")
-md5sums=('b663300efdf421b3b727b19d7be9c7e7'
- '2ca78b1ec5852779bc121a97da6e8d4d'
- 'c7f318607346ce3f151bebd73f15864e')
+md5sums=('a263ed1c7b16ea10d3b20278852b65d7')
prepare() {
- (cd bleach-$pkgver
- patch -p1 <"$srcdir"/0001-Make-bleach-allow-for-vendored-html5lib-version.patch)
-
cp -a bleach-$pkgver{,-python2}
}
@@ -39,17 +32,11 @@
}
package_python-bleach() {
- cd "$srcdir"/html5lib-python-0.9999999
- python setup.py install --root="$pkgdir"/usr/lib/python3.6/site-packages --install-purelib=bleach --optimize=1
-
cd "$srcdir"/bleach-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
package_python2-bleach() {
- cd "$srcdir"/html5lib-python-0.9999999
- python2 setup.py install --root="$pkgdir"/usr/lib/python2.7/site-packages --install-purelib=bleach --optimize=1
-
cd "$srcdir"/bleach-$pkgver-python2
python2 setup.py install --root="$pkgdir" --optimize=1
}
More information about the arch-commits
mailing list