community/python-setuptools-markdown to 0.2-4

This commit is contained in:
Kevin Mihelich 2019-03-19 12:45:11 +00:00
parent 5d04ab654d
commit 3a34288606

View file

@ -1,44 +1,30 @@
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org> # Maintainer: Felix Yan <felixonmars@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - removed makedepends on python-pypandoc and python2-pypandoc # - removed dependency on python-pypandoc
# - removed depends on those in the packages
pkgbase=python-setuptools-markdown pkgname=python-setuptools-markdown
pkgname=(python-setuptools-markdown python2-setuptools-markdown)
pkgver=0.2 pkgver=0.2
pkgrel=3 _commit=48c3977bf3404141fec78e2d1f8658bfbcf82f53
pkgrel=4
pkgdesc="Use Markdown for your project description" pkgdesc="Use Markdown for your project description"
arch=('any') arch=('any')
url="https://github.com/msabramo/setuptools-markdown" url="https://github.com/msabramo/setuptools-markdown"
license=('MIT') license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools' 'git') depends=('python-setuptools')
source=("git+https://github.com/msabramo/setuptools-markdown.git#commit=$_commit") source=("$pkgname-$_commit.tar.gz::https://github.com/msabramo/setuptools-markdown/archive/$_commit.tar.gz")
md5sums=('SKIP') sha512sums=('8e946ddcc488ef42179eb1da5bc3c155c3f307744074c0c0e2f6bcc9d131a6df8504c8c1e7e862fdeb3a89288c4c4ccbab1d49eb331ceb9599bb89e1a0904655')
prepare() { prepare() {
cp -a setuptools-markdown{,-py2} mv setuptools-markdown-{$_commit,$pkgver}
} }
build() { build() {
cd "${srcdir}/setuptools-markdown" cd setuptools-markdown-$pkgver
python setup.py build python setup.py build
cd "${srcdir}/setuptools-markdown-py2"
python2 setup.py build
} }
package_python-setuptools-markdown() { package() {
depends=('python-setuptools') cd setuptools-markdown-$pkgver
cd "${srcdir}/setuptools-markdown"
python setup.py install --root "$pkgdir" python setup.py install --root "$pkgdir"
} }
package_python2-setuptools-markdown() {
depends=('python2-setuptools')
cd "${srcdir}/setuptools-markdown-py2"
python2 setup.py install --root "$pkgdir"
}