[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sat May 25 18:46:02 UTC 2019


    Date: Saturday, May 25, 2019 @ 18:46:02
  Author: felixonmars
Revision: 470763

addpkg: python-pipreqs 0.4.7-1

Added:
  python-pipreqs/
  python-pipreqs/repos/
  python-pipreqs/trunk/
  python-pipreqs/trunk/PKGBUILD

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

Added: python-pipreqs/trunk/PKGBUILD
===================================================================
--- python-pipreqs/trunk/PKGBUILD	                        (rev 0)
+++ python-pipreqs/trunk/PKGBUILD	2019-05-25 18:46:02 UTC (rev 470763)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pipreqs
+pkgver=0.4.7
+pkgrel=1
+pkgdesc="Pip requirements.txt generator based on imports in project"
+url="https://github.com/bndr/pipreqs"
+license=('MIT')
+arch=('any')
+depends=('python-docopt' 'python-yarg')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/bndr/pipreqs/archive/v$pkgver.tar.gz")
+sha512sums=('c6f2c9fec0d00b2d853d46cf52c777f1e7a27e1ba63c0516ffee78c15f52387273ed5de6571ca7b837c7386f42ebaf57c08f26fead99f25de2249c484affa87c')
+
+build() {
+  cd pipreqs-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pipreqs-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd pipreqs-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}


More information about the arch-commits mailing list