[arch-commits] Commit in python-pew/repos (community-any community-any/PKGBUILD)

Morten Linderud foxboron at archlinux.org
Fri Oct 20 22:54:35 UTC 2017


    Date: Friday, October 20, 2017 @ 22:54:34
  Author: foxboron
Revision: 263769

archrelease: copy trunk to community-any

Added:
  python-pew/repos/community-any/
  python-pew/repos/community-any/PKGBUILD
    (from rev 263768, python-pew/trunk/PKGBUILD)

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

Copied: python-pew/repos/community-any/PKGBUILD (from rev 263768, python-pew/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-10-20 22:54:34 UTC (rev 263769)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Morten Linderud <foxboron at archlinux.org> 
+# Contributor: Jos? Luis Lafuente <jl at lafuente.me>
+# Contributor: Arthur Vuillard <arthur at hashbang.fr>
+
+pkgbase='python-pew'
+pkgname=('python-pew' 'python2-pew')
+pkgver=1.1.0
+pkgrel=2
+pkgdesc="Python Env Wrapper, a set of tools to manage multiple virtual environments"
+url="https://github.com/berdario/pew"
+arch=('any')
+license=('MIT')
+makedepends=('python' 'python-setuptools'
+             'python2' 'python2-setuptools')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/berdario/pew/archive/$pkgver.zip")
+sha256sums=('755869c2aeed7ec0ad5d7bff0f2bfb75030b079b4d81691fd313d906bf637d90')
+
+build() {
+    cd "${pkgname##*-}-${pkgver}"
+    python setup.py build
+}
+
+package_python-pew() {
+  depends=('python' 'python-virtualenv' 'python-virtualenv-clone')
+  cd "${pkgname##*-}-${pkgver}"
+  #python3 setup.py install --prefix=/usr --root="$pkgdir"
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+  install -D -m644 "pew/shell_config/complete.fish" \
+    "$pkgdir/usr/share/fish/completions/pew.fish"
+
+  install -D -m644 "pew/shell_config/complete.bash" \
+    "$pkgdir/usr/share/bash-completion/completions/pew"
+
+  install -D -m644 "pew/shell_config/complete.zsh" \
+    "$pkgdir/usr/share/zsh/site-functions/_pew"
+
+  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pew() {
+  depends=('python2' 'python2-virtualenv' 'python2-virtualenv-clone')
+  cd "${pkgname##*-}-${pkgver}"
+  #python3 setup.py install --prefix=/usr --root="$pkgdir"
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+  mv "${pkgdir}/usr/bin/pew" "${pkgdir}/usr/bin/pew2"
+
+  install -D -m644 "pew/shell_config/complete.fish" \
+    "$pkgdir/usr/share/fish/completions/pew.fish"
+
+  install -D -m644 "pew/shell_config/complete.bash" \
+    "$pkgdir/usr/share/bash-completion/completions/pew"
+
+  install -D -m644 "pew/shell_config/complete.zsh" \
+    "$pkgdir/usr/share/zsh/site-functions/_pew"
+
+  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+



More information about the arch-commits mailing list