summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhullyb2021-02-10 04:08:17 +0800
committerzhullyb2021-02-10 04:08:17 +0800
commitd9c02c9b757ab68af18b02864930496888b73709 (patch)
tree14bf8ef84180e37bc2ac352845c4cebcf277b144
downloadaur-python-html2md.tar.gz
First Version on AUR
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD27
-rw-r--r--requirements.txt1
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c541faf921c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-html2md
+ pkgdesc = HTML to Markdown converter
+ pkgver = 0.1.7
+ pkgrel = 1
+ url = https://github.com/davidcavazos/html2md
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = python
+ makedepends = python-pyquery
+ depends = python
+ source = https://pypi.python.org/packages/source/h/html2md/html2md-0.1.7.tar.gz
+ source = requirements.txt
+ md5sums = 9faf9fb6b103fa6e6ed727ed0b4c6270
+ md5sums = 5319822149eda4c961bfb3d43eeeb2a6
+
+pkgname = python-html2md
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ffdc23b1b62
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: zhullyb <zhullyb@outlook.com>
+
+pkgname=python-html2md
+_pypiname=html2md
+pkgver=0.1.7
+pkgrel=1
+pkgdesc="HTML to Markdown converter"
+url="https://github.com/davidcavazos/html2md"
+depends=('python' )
+makedepends=('python' 'python-pyquery')
+license=('Apache')
+arch=('i686' 'x86_64')
+source=("https://pypi.python.org/packages/source/h/${_pypiname}/${_pypiname}-${pkgver}.tar.gz"
+ "requirements.txt")
+md5sums=('9faf9fb6b103fa6e6ed727ed0b4c6270'
+ '5319822149eda4c961bfb3d43eeeb2a6')
+
+build() {
+ cp requirements.txt $srcdir/${_pypiname}-${pkgver}
+ cd $srcdir/${_pypiname}-${pkgver}
+ python setup.py build
+}
+
+package() {
+ cd $srcdir/${_pypiname}-${pkgver}
+ python setup.py install --root="$pkgdir" --optimize=1
+}
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 00000000000..0c59a60cc5e
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1 @@
+pyquery \ No newline at end of file