diff options
author | Nuno Araujo | 2015-11-15 11:33:45 +0100 |
---|---|---|
committer | Nuno Araujo | 2015-11-15 11:33:45 +0100 |
commit | 2344c90f3bd5e5ea31a146e3f96eeb7025690853 (patch) | |
tree | f42480e7b39c4c6b14a76d4739304f7705d394bb | |
download | aur-2344c90f3bd5e5ea31a146e3f96eeb7025690853.tar.gz |
pyenv-virtualenv-20151103-1
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 22 |
3 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e28e28a88796 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = pyenv-virtualenv + pkgdesc = pyenv plugin to manage virtualenv (a.k.a. python-virtualenv) + pkgver = 20151103 + pkgrel = 1 + url = https://github.com/yyuu/pyenv-virtualenv + arch = any + license = MIT + depends = pyenv + source = https://github.com/yyuu/pyenv-virtualenv/archive/v20151103.zip + md5sums = a24ff32f55b4d9e7e3c130b0944d8f29 + +pkgname = pyenv-virtualenv + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..c4c4ffc6aa41 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.zip diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ae6c67cbd84d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Nuno Araujo <nuno.araujo@russo79.com> +pkgname=pyenv-virtualenv +pkgver=20151103 +pkgrel=1 +pkgdesc="pyenv plugin to manage virtualenv (a.k.a. python-virtualenv)" +arch=('any') +url="https://github.com/yyuu/pyenv-virtualenv" +license=('MIT') +depends=('pyenv') +source=("https://github.com/yyuu/$pkgname/archive/v$pkgver.zip") +md5sums=('a24ff32f55b4d9e7e3c130b0944d8f29') + +package() { + mkdir -p "${pkgdir?}"/{opt/pyenv/plugins/pyenv-virtualenv,usr/bin} + cd "${srcdir?}/$pkgname-$pkgver" + cp -a -- * "$pkgdir"/opt/pyenv/plugins/pyenv-virtualenv + + for bin in $pkgdir/opt/pyenv/plugins/pyenv-virtualenv/bin/*; do + ln -s /opt/pyenv/plugins/pyenv-virtualenv/bin/"$(basename $bin)" "$pkgdir/usr/bin/$(basename $bin)" + done +} + |