[arch-commits] Commit in python-pdoc/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Mar 27 11:30:42 UTC 2019


    Date: Wednesday, March 27, 2019 @ 11:30:41
  Author: felixonmars
Revision: 444203

upgpkg: python-pdoc 0.3.2-4

remove python2 sibling

Modified:
  python-pdoc/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++----------------------------
 1 file changed, 9 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-27 11:29:32 UTC (rev 444202)
+++ PKGBUILD	2019-03-27 11:30:41 UTC (rev 444203)
@@ -2,49 +2,30 @@
 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
 # Contributor: Thomas S Hatch <thatch45 at gmail.com>
 
-pkgbase=python-pdoc
-pkgname=('python-pdoc' 'python2-pdoc')
+pkgname=python-pdoc
 pkgver=0.3.2
-pkgrel=3
+pkgrel=4
 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')
+depends=('python-mako' 'python-markdown')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/BurntSushi/pdoc/archive/$pkgver.tar.gz")
+sha512sums=('435d7279f67107043b7763b2fb571b777fbec578f9acf2cc96463587fe55e753ca2dc3b7925e7d595da8fd0d228991fd9b6191e614dca401316df320179cbb76')
 
 prepare() {
-  sed -i 's/markdown < 2.5/markdown/' pdoc/setup.py
-
-  cp -a pdoc{,-py2}
+  sed -i 's/markdown < 2.5/markdown/' pdoc-$pkgver/setup.py
 }
 
 build() {
-  cd "$srcdir"/pdoc
+  cd pdoc-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pdoc-py2
-  python2 setup.py build
 }
 
-package_python-pdoc() {
-  depends=('python-mako' 'python-markdown')
-
-  cd pdoc
+package() {
+  cd pdoc-$pkgver
   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