mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 06:37:16 +08:00
48 lines
1.4 KiB
Bash
48 lines
1.4 KiB
Bash
|
# Contributor from Arch https://www.archlinux.org/packages/community/any/python-prompt_toolkit/
|
||
|
|
||
|
pkgbase=python-prompt_toolkit
|
||
|
pkgname=('python3-prompt_toolkit' 'python2-prompt_toolkit')
|
||
|
_name=prompt_toolkit
|
||
|
pkgver=1.0.3
|
||
|
pkgrel=1
|
||
|
pkgdesc="Library for building powerful interactive command lines in Python"
|
||
|
arch=('any')
|
||
|
depends=('python3-pygments'
|
||
|
'python3-six'
|
||
|
'python3-wcwidth')
|
||
|
makedepends=('python3-setuptools' 'python2-setuptools'
|
||
|
'python2-pygments' 'python2-six' 'python2-wcwidth')
|
||
|
url="https://github.com/jonathanslenders/python-prompt-toolkit"
|
||
|
license=('BSD')
|
||
|
options=(!emptydirs)
|
||
|
source=("https://files.pythonhosted.org/packages/source/p/$_name/$_name-$pkgver.tar.gz")
|
||
|
sha256sums=('805e026f0cbad27467e93f9dd3e3777718d401a62788c1e84ca038e967ad8ba2')
|
||
|
|
||
|
prepare() {
|
||
|
cd "$srcdir"
|
||
|
cp -r $_name-$pkgver python2-$_name-$pkgver
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir/$_name-$pkgver"
|
||
|
python3 setup.py build
|
||
|
|
||
|
cd "$srcdir/python2-$_name-$pkgver"
|
||
|
python2 setup.py build
|
||
|
}
|
||
|
|
||
|
package_python3-prompt_toolkit() {
|
||
|
cd "$srcdir/$_name-$pkgver"
|
||
|
python3 setup.py install --root="$pkgdir" --optimize=1
|
||
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||
|
}
|
||
|
|
||
|
package_python2-prompt_toolkit() {
|
||
|
depends=('python2-pygments'
|
||
|
'python2-six'
|
||
|
'python2-wcwidth')
|
||
|
cd "$srcdir/python2-$_name-$pkgver"
|
||
|
python2 setup.py install --root="$pkgdir" --optimize=1
|
||
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||
|
}
|