diff --git a/community/python-setuptools-markdown/PKGBUILD b/community/python-setuptools-markdown/PKGBUILD new file mode 100644 index 000000000..33679394a --- /dev/null +++ b/community/python-setuptools-markdown/PKGBUILD @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Felix Yan + +# ALARM: Kevin Mihelich +# - removed makedepends on python-pypandoc and python2-pypandoc + +pkgbase=python-setuptools-markdown +pkgname=(python-setuptools-markdown python2-setuptools-markdown) +pkgver=0.2 +pkgrel=2 +pkgdesc="Use Markdown for your project description" +arch=('any') +url="https://github.com/msabramo/setuptools-markdown" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools' 'git') +source=("git+https://github.com/msabramo/setuptools-markdown.git#commit=$_commit") +md5sums=('SKIP') + +prepare() { + cp -a setuptools-markdown{,-py2} +} + +build() { + cd "${srcdir}/setuptools-markdown" + python setup.py build + + cd "${srcdir}/setuptools-markdown-py2" + python2 setup.py build +} + +package_python-setuptools-markdown() { + depends=('python-setuptools' 'python-pypandoc') + + cd "${srcdir}/setuptools-markdown" + python setup.py install --root "$pkgdir" +} + +package_python2-setuptools-markdown() { + depends=('python2-setuptools' 'python2-pypandoc') + + cd "${srcdir}/setuptools-markdown-py2" + python2 setup.py install --root "$pkgdir" +}