summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD31
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3c4ebe95f7a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = python2-html2md
+ pkgdesc = Downloads HTML from a URL, optionally passes it through Instapaper’s mobilizer, and converts it to Markdown
+ pkgver = 0.1.3
+ pkgrel = 2
+ url = https://pypi.python.org/pypi/html2md
+ arch = any
+ license = Apache
+ makedepends = python2-setuptools
+ depends = python2
+ depends = python2-argcomplete
+ depends = python2-argh
+ depends = python2-html2text
+ depends = python2-logbook
+ depends = python2-pyquery
+ depends = python2-requests
+ depends = python2-verlib
+ provides = html2md
+ provides = python2-html2md
+ conflicts = html2md
+ options = !emptydirs
+ source = https://pypi.python.org/packages/source/h/html2md/html2md-0.1.3.tar.gz
+ md5sums = 5ce25928cf36859302bbf08734fdf21c
+ sha256sums = 7053cb8cb55b065f83127164405d4002f44fc57ac8e64b4c1e2ba210349ad5e0
+
+pkgname = python2-html2md
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3391e6b392b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=python2-html2md
+pkgver=0.1.3
+pkgrel=2
+pkgdesc="Downloads HTML from a URL, optionally passes it through Instapaper’s mobilizer, and converts it to Markdown"
+arch=('any')
+depends=('python2' 'python2-argcomplete' 'python2-argh' 'python2-html2text' 'python2-logbook' 'python2-pyquery' 'python2-requests' 'python2-verlib')
+makedepends=('python2-setuptools')
+url="https://pypi.python.org/pypi/html2md"
+license=('Apache')
+options=(!emptydirs)
+source=(https://pypi.python.org/packages/source/h/${pkgname#python2-}/${pkgname#python2-}-$pkgver.tar.gz)
+md5sums=('5ce25928cf36859302bbf08734fdf21c')
+sha256sums=('7053cb8cb55b065f83127164405d4002f44fc57ac8e64b4c1e2ba210349ad5e0')
+provides=('html2md' 'python2-html2md')
+conflicts=('html2md')
+
+build() {
+ cd "$srcdir/${pkgname#python2-}-$pkgver"
+
+ msg 'Building...'
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/${pkgname#python2-}-$pkgver"
+
+ msg 'Installing...'
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}