Skip to content

Instantly share code, notes, and snippets.

@mdemierre
Created November 25, 2016 17:19
Show Gist options
  • Save mdemierre/9f3615e9413b379199481b3bb74f35bc to your computer and use it in GitHub Desktop.
Save mdemierre/9f3615e9413b379199481b3bb74f35bc to your computer and use it in GitHub Desktop.
PKGBUILD for pyenv-virtualenv 1.0.0
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
# 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