[arch-commits] Commit in python-bleach/repos/community-any (PKGBUILD)

Johannes Löthberg demize at archlinux.org
Sat Mar 18 23:52:15 UTC 2017


    Date: Saturday, March 18, 2017 @ 23:52:14
  Author: demize
Revision: 217204

archrelease: copy trunk to community-any

Added:
  python-bleach/repos/community-any/PKGBUILD
    (from rev 217203, python-bleach/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: python-bleach/repos/community-any/PKGBUILD (from rev 217203, python-bleach/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-03-18 23:52:14 UTC (rev 217204)
@@ -0,0 +1,42 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgbase=python-bleach
+pkgname=(python-bleach python2-bleach)
+pkgver=2.0.0
+pkgrel=1
+
+pkgdesc="An easy whitelist-based HTML-sanitizing tool"
+url="http://pypi.python.org/pypi/bleach"
+arch=('any')
+license=('Apache')
+
+makedepends=('python'
+             'python-setuptools'
+             'python2'
+             'python2-setuptools')
+
+source=("python-bleach-$pkgver.tar.gz::https://pypi.org/packages/source/b/bleach/bleach-2.0.0.tar.gz")
+
+md5sums=('a263ed1c7b16ea10d3b20278852b65d7')
+
+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_python2-bleach() {
+	cd "$srcdir"/bleach-$pkgver-python2
+	python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list