[arch-commits] Commit in python-pdoc/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Jul 18 03:22:24 UTC 2018
Date: Wednesday, July 18, 2018 @ 03:22:24
Author: foutrelis
Revision: 361565
archrelease: copy trunk to community-staging-any
Added:
python-pdoc/repos/community-staging-any/
python-pdoc/repos/community-staging-any/PKGBUILD
(from rev 361564, python-pdoc/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-pdoc/repos/community-staging-any/PKGBUILD (from rev 361564, python-pdoc/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-18 03:22:24 UTC (rev 361565)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+
+pkgbase=python-pdoc
+pkgname=('python-pdoc' 'python2-pdoc')
+pkgver=0.3.2
+pkgrel=3
+pkgdesc='A simple program and library to auto generate API documentation for Python modules.'
+arch=('any')
+url='https://github.com/BurntSushi/pdoc'
+license=('custom:Public Domain')
+makedepends=('python-mako' 'python2-mako' 'python-markdown' 'python2-markdown' 'git')
+source=("git+https://github.com/BurntSushi/pdoc.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ sed -i 's/markdown < 2.5/markdown/' pdoc/setup.py
+
+ cp -a pdoc{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pdoc
+ python setup.py build
+
+ cd "$srcdir"/pdoc-py2
+ python2 setup.py build
+}
+
+package_python-pdoc() {
+ depends=('python-mako' 'python-markdown')
+
+ cd pdoc
+ python setup.py install --root="$pkgdir" -O1
+
+ install -Dm644 "$pkgdir"/usr/share/pdoc/UNLICENSE "$pkgdir"/usr/share/licenses/$pkgname/UNLICENSE
+ rm -r "$pkgdir"/usr/share
+}
+
+package_python2-pdoc() {
+ depends=('python2-mako' 'python2-markdown')
+
+ cd pdoc-py2
+ python2 setup.py install --root="$pkgdir" -O1
+
+ mv "$pkgdir"/usr/bin/pdoc{,2}
+ install -Dm644 "$pkgdir"/usr/share/pdoc/UNLICENSE "$pkgdir"/usr/share/licenses/$pkgname/UNLICENSE
+ rm -r "$pkgdir"/usr/share
+}
More information about the arch-commits
mailing list