[arch-commits] Commit in pychecker/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 15:42:46 UTC 2020


    Date: Tuesday, July 7, 2020 @ 15:42:46
  Author: felixonmars
Revision: 658985

archrelease: copy trunk to community-staging-any

Added:
  pychecker/repos/community-staging-any/
  pychecker/repos/community-staging-any/PKGBUILD
    (from rev 658984, pychecker/trunk/PKGBUILD)

----------+
 PKGBUILD |   27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Copied: pychecker/repos/community-staging-any/PKGBUILD (from rev 658984, pychecker/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 15:42:46 UTC (rev 658985)
@@ -0,0 +1,27 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+#Maintainer: Ben Mazer <blm at groknil.org>
+
+pkgname=pychecker
+pkgver=0.8.19
+pkgrel=6
+pkgdesc="Python code checker"
+arch=('any')
+url="http://pychecker.sourceforge.net"
+license=('custom')
+depends=('python2')
+source=(https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+sha512sums=('50f3d87a0ea80235761eb0ff078dc7e815848c356cea2bdf12bb699edc6d3301252acebaf6ab6aa961849d740dc38bc9b6deb7cfe956e7fff83a104750adfa18')
+
+prepare() {
+  cd "$srcdir"/$pkgname-$pkgver
+  chmod 0644 ChangeLog
+  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+         -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+         $(find . -name '*.py')
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver
+  python2 setup.py install --root="$pkgdir"
+  install -D -m 644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
+}


More information about the arch-commits mailing list