blob: 85fd443430fb1adcc133f0825b3547dcf2845662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Darkfish Tech <arch at darkfish dot com dot au>
# Contributor: Ayrton Araujo <root@ayr-ton.net>
# Contributor: Kevin Del Castillo R. <lans9831@gmail.com>
# Contributor: Nuno Araujo <nuno.araujo@russo79.com>
pkgname=pyenv-virtualenv
pkgver=1.2.4
pkgrel=1
epoch=1
pkgdesc="pyenv plugin to manage virtualenv (a.k.a. python-virtualenv)"
arch=('any')
url="https://github.com/pyenv/pyenv-virtualenv"
license=('MIT')
depends=('pyenv' 'bash')
source=("https://github.com/pyenv/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('6f49a395a17221f87e1e16f0f92c99c3d21d4fc27072d5c80e65ca11b686eedd')
package() {
_install_dir="usr/share/pyenv/plugins/pyenv-virtualenv"
mkdir -p "${pkgdir?}"/{${_install_dir},usr/bin}
cd "${srcdir?}/$pkgname-$pkgver"
# Intall using the script
PREFIX="${pkgdir}/${_install_dir}" ./install.sh
# Link binaries
pushd bin &> /dev/null
for bin in *; do
ln -s "/${_install_dir}/bin/$bin" "$pkgdir/usr/bin/$bin"
done
popd &> /dev/null
# License
mkdir -p "$pkgdir"/usr/share/licenses/pyenv-virtualenv
cp LICENSE "$pkgdir"/usr/share/licenses/pyenv-virtualenv
}
# vim:set sw=2 sts=2 et:
|