[arch-commits] Commit in python-bleach (repos trunk trunk/PKGBUILD)
Johannes Löthberg
demize at archlinux.org
Sat Jan 14 22:26:58 UTC 2017
Date: Saturday, January 14, 2017 @ 22:26:57
Author: demize
Revision: 207430
python-bleach: Import PKGBUILD
Added:
python-bleach/repos/
python-bleach/trunk/
python-bleach/trunk/PKGBUILD
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Added: trunk/PKGBUILD
===================================================================
--- trunk/PKGBUILD (rev 0)
+++ trunk/PKGBUILD 2017-01-14 22:26:57 UTC (rev 207430)
@@ -0,0 +1,40 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgbase=python-bleach
+pkgname=(python-bleach python2-bleach)
+pkgver=1.5.0
+pkgrel=3
+
+pkgdesc="An easy whitelist-based HTML-sanitizing tool"
+url="http://pypi.python.org/pypi/bleach"
+arch=('any')
+license=('Apache')
+
+depends=('python2-html5lib-git')
+makedepends=('python2-setuptools')
+
+source=("python-bleach-$pkgver.tar.gz::https://github.com/mozilla/bleach/archive/v$pkgver.tar.gz")
+
+md5sums=('c2b7c8c189ff86670a6e6edc3c86a63a')
+
+prepare() {
+ cp -a bleach-$pkgver{,-python2}
+}
+
+build() {
+ cd "$srcdir"/bleach-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/bleach-$pkgver-python2
+ python2 setup.py build
+}
+
+package_python-bleach() {
+ cd "$srcdir"/bleach-$pkgver
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python-bleach() {
+ cd "$srcdir"/bleach-$pkgver-python2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}
More information about the arch-commits
mailing list