summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorguochao2018-02-02 11:12:33 +0800
committerguochao2018-02-02 11:12:33 +0800
commitaebd6f40d4760351cd5acc1fb8104f66b95887d1 (patch)
tree0949841771301e11f344526de66c336ab44f6267
downloadaur-python-pipreqs.tar.gz
init commit
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD31
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d1b9c23cabe
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = python-pipreqs
+ pkgdesc = Pip requirements.txt generator based on imports in project
+ pkgver = 0.4.9
+ pkgrel = 1
+ url = https://github.com/bndr/pipreqs
+ arch = any
+ license = Apache License 2.0
+ makedepends = python
+ makedepends = python-setuptools
+ makedepends = python2
+ makedepends = python2-setuptools
+ source = https://pypi.python.org/packages/67/63/84409df1acd879d239e53599de2b3df45013e6cf46406fd94e86822635f3/pipreqs-0.4.9.tar.gz
+ md5sums = daf927ef489ccc83ff8fffe922c10f11
+
+pkgname = python-pipreqs
+ depends = python
+ depends = python-wheel
+ depends = python-docopt
+ depends = python-yarg
+
+pkgname = python2-pipreqs
+ depends = python2
+ depends = python2-wheel
+ depends = python2-docopt
+ depends = python2-yarg
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..62286541e6f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: RG <jeffguorg@gmail.com>
+pkgname=('python-pipreqs' 'python2-pipreqs')
+pkgver=0.4.9
+pkgrel=1
+pkgdesc="Pip requirements.txt generator based on imports in project"
+arch=('any')
+url="https://github.com/bndr/pipreqs"
+license=('Apache License 2.0')
+makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
+source=('https://pypi.python.org/packages/67/63/84409df1acd879d239e53599de2b3df45013e6cf46406fd94e86822635f3/pipreqs-0.4.9.tar.gz')
+md5sums=('daf927ef489ccc83ff8fffe922c10f11')
+
+package_python-pipreqs() {
+ depends=('python' 'python-wheel' 'python-docopt' 'python-yarg')
+ cd "$srcdir/pipreqs-$pkgver"
+ python setup.py install --prefix="/usr" --root="$pkgdir/" --optimize=1
+ sed -i "s|#!/usr/bin/python$|#!/usr/bin/env python|" \
+ ${pkgdir}/usr/bin/pipreqs
+}
+package_python2-pipreqs() {
+ depends=('python2' 'python2-wheel' 'python2-docopt' 'python2-yarg')
+ cd "$srcdir/pipreqs-$pkgver"
+ python2 setup.py install --prefix="/usr" --root="$pkgdir/" --optimize=1
+ sed -i "s|#!/usr/bin/python$|#!/usr/bin/env python2|" \
+ ${pkgdir}/usr/bin/pipreqs
+ mv "$pkgdir/usr/bin/pipreqs" "$pkgdir/usr/bin/pipreqs2"
+ sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
+ ${pkgdir}/usr/lib/python2.7/site-packages/pipreqs/pipreqs.py
+}
+
+# vim:set ts=2 sw=2 et: