Created
November 25, 2016 17:19
-
-
Save mdemierre/9f3615e9413b379199481b3bb74f35bc to your computer and use it in GitHub Desktop.
PKGBUILD for pyenv-virtualenv 1.0.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgbase = pyenv-virtualenv | |
pkgdesc = pyenv plugin to manage virtualenv (a.k.a. python-virtualenv) | |
pkgver = 1.0.0 | |
pkgrel = 1 | |
epoch = 1 | |
url = https://github.com/yyuu/pyenv-virtualenv | |
arch = any | |
license = MIT | |
depends = pyenv | |
source = https://github.com/yyuu/pyenv-virtualenv/archive/v1.0.0.tar.gz | |
sha256sums = 3523129c24ca3ad2cf130885ef9801cb066b04eabc354ee2c38c486b8b726f15 | |
pkgname = pyenv-virtualenv | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Nuno Araujo <nuno.araujo@russo79.com> | |
pkgname=pyenv-virtualenv | |
pkgver=1.0.0 | |
pkgrel=1 | |
epoch=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.tar.gz") | |
sha256sums=('3523129c24ca3ad2cf130885ef9801cb066b04eabc354ee2c38c486b8b726f15') | |
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 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment