* add pyenv
This commit is contained in:
parent
66f6fc9770
commit
c8e9fc46fe
15
python/pyenv/.SRCINFO
Normal file
15
python/pyenv/.SRCINFO
Normal file
@ -0,0 +1,15 @@
|
||||
pkgbase = pyenv
|
||||
pkgdesc = Easily switch between multiple versions of Python
|
||||
pkgver = 2.5.3
|
||||
pkgrel = 1
|
||||
epoch = 1
|
||||
url = https://github.com/pyenv/pyenv
|
||||
arch = any
|
||||
license = MIT
|
||||
depends = bash
|
||||
optdepends = git: installing development versions
|
||||
source = https://github.com/pyenv/pyenv/archive/v2.5.3/pyenv-2.5.3.tar.gz
|
||||
sha512sums = 7651a069d0a179651ec37f392995cadd7d9274f82ee473c1b8afb21f300d098a6b75ecf465f92f6e37aa8e4fb8b9295ab57512fe0cbeb21aa22296fea634f1a4
|
||||
b2sums = 0f7a9ccd3c1d81d7b3991e24ae0825620c6ceba9ac69fbae692b4a645ebbda01f00e5a19db06abeed33c0dac8509afa7be94e43e0f27ac08f8b54358e3c7e3bb
|
||||
|
||||
pkgname = pyenv
|
5
python/pyenv/.nvchecker.toml
Normal file
5
python/pyenv/.nvchecker.toml
Normal file
@ -0,0 +1,5 @@
|
||||
[pyenv]
|
||||
source = "git"
|
||||
git = "https://github.com/pyenv/pyenv"
|
||||
include_regex = 'v\d+\.+[\d\.]+'
|
||||
prefix = "v"
|
50
python/pyenv/PKGBUILD
Normal file
50
python/pyenv/PKGBUILD
Normal file
@ -0,0 +1,50 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: David Runge <dvzrv@archlinux.org>
|
||||
# Maintainer: Carl Smedstad <carsme@archlinux.org>
|
||||
|
||||
pkgname=pyenv
|
||||
pkgver=2.5.3
|
||||
pkgrel=1
|
||||
epoch=1
|
||||
pkgdesc="Easily switch between multiple versions of Python"
|
||||
arch=(any)
|
||||
url="https://github.com/pyenv/pyenv"
|
||||
license=(MIT)
|
||||
depends=(bash)
|
||||
optdepends=('git: installing development versions')
|
||||
source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
|
||||
sha512sums=('7651a069d0a179651ec37f392995cadd7d9274f82ee473c1b8afb21f300d098a6b75ecf465f92f6e37aa8e4fb8b9295ab57512fe0cbeb21aa22296fea634f1a4')
|
||||
b2sums=('0f7a9ccd3c1d81d7b3991e24ae0825620c6ceba9ac69fbae692b4a645ebbda01f00e5a19db06abeed33c0dac8509afa7be94e43e0f27ac08f8b54358e3c7e3bb')
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
# application
|
||||
install -vDm 755 libexec/* -t "$pkgdir/usr/share/$pkgname/libexec"
|
||||
install -vdm 755 "$pkgdir/usr/bin"
|
||||
ln -sv /usr/share/$pkgname/libexec/$pkgname "$pkgdir/usr/bin/$pkgname"
|
||||
# application hooks
|
||||
install -vDm 755 pyenv.d/exec/pip-rehash/* -t "$pkgdir/usr/share/$pkgname/pyenv.d/exec/pip-rehash/"
|
||||
install -vDm 644 pyenv.d/exec/*.bash -t "$pkgdir/usr/share/$pkgname/pyenv.d/exec/"
|
||||
install -vDm 644 pyenv.d/install/*.bash -t "$pkgdir/usr/share/$pkgname/pyenv.d/install/"
|
||||
install -vDm 644 pyenv.d/rehash/*.bash -t "$pkgdir/usr/share/$pkgname/pyenv.d/rehash"
|
||||
install -vDm 644 pyenv.d/rehash/conda.d/* -t "$pkgdir/usr/share/$pkgname/pyenv.d/rehash/conda.d"
|
||||
install -vDm 644 pyenv.d/rehash/source.d/* -t "$pkgdir/usr/share/$pkgname/pyenv.d/rehash/source.d"
|
||||
# plugin
|
||||
install -vDm 755 plugins/python-build/bin/* -t "$pkgdir/usr/share/$pkgname/plugins/python-build/bin"
|
||||
for bin in {${pkgname}-{install,uninstall},python-build}; do
|
||||
ln -sv /usr/share/$pkgname/plugins/python-build/bin/$bin "$pkgdir/usr/bin/$bin"
|
||||
done
|
||||
cp -av plugins/python-build/share "$pkgdir/usr/share/$pkgname/plugins/python-build"
|
||||
# licenses
|
||||
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
install -vDm 644 plugins/python-build/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE.python-build"
|
||||
# shell completion
|
||||
install -vDm 644 completions/*.fish -t "$pkgdir/usr/share/fish/vendor_completions.d/"
|
||||
install -vDm 644 completions/$pkgname.bash "$pkgdir/usr/share/bash-completion/completions/$pkgname"
|
||||
install -vDm 644 completions/$pkgname.zsh "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
|
||||
# man page
|
||||
install -vDm 644 man/man1/*.1 -t "$pkgdir/usr/share/man/man1/"
|
||||
# docs
|
||||
install -vDm 644 {CHANGELOG,COMMANDS,README}.md -t "$pkgdir/usr/share/doc/$pkgname"
|
||||
install -vDm 644 plugins/python-build/README.md "$pkgdir/usr/share/doc/$pkgname/README-python-build.md"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user