[arch-commits] Commit in python2-html2text/repos (2 files)
Felix Yan
fyan at archlinux.org
Wed Jul 22 07:22:37 UTC 2015
Date: Wednesday, July 22, 2015 @ 09:22:36
Author: fyan
Revision: 137269
archrelease: copy trunk to community-any
Added:
python2-html2text/repos/community-any/
python2-html2text/repos/community-any/PKGBUILD
(from rev 137268, python2-html2text/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python2-html2text/repos/community-any/PKGBUILD (from rev 137268, python2-html2text/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-07-22 07:22:36 UTC (rev 137269)
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 97778 2013-09-29 16:22:13Z jlichtblau $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgname=python2-html2text
+pkgver=2015.6.12
+pkgrel=1
+pkgdesc="A HTML to markdown-structured text converter"
+arch=('any')
+url="https://pypi.python.org/pypi/html2text/"
+license=('GPL3')
+depends=('python2-setuptools')
+source=("https://pypi.python.org/packages/source/h/html2text/html2text-$pkgver.tar.gz")
+sha256sums=('240bef2049fb3e0b7e5d50e28bc99121a457cd8bd8c6c9f5f9706195fd61556e')
+
+build() {
+ cd "${srcdir}"/html2text-$pkgver
+ python2 setup.py build
+}
+
+check() {
+ cd "${srcdir}"/html2text-$pkgver
+ PYTHONPATH=$PYTHONPATH:. python2 setup.py test --verbose
+}
+
+package() {
+ cd "${srcdir}"/html2text-${pkgver}
+ python2 setup.py install --root="${pkgdir}"
+
+ mv "$pkgdir/usr/bin/html2text"{,2}
+}
More information about the arch-commits
mailing list