blob: 992739307c9354a5cf811fe8641508b5bdff7c0e (
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
39
40
41
42
43
|
# Maintainer: Shivansh <shivansh-007 + aur at outlook <.> com>
# Maintainer: SuperMazingCoder <supermazingcoder + aur at gmail <.> com>
# Contributor: Kenee Patel <patelkenee2804 + aur at gmail <.> com>
pkgname=piston-cli
pkgver=1.3.0
pkgrel=1
pkgdesc="A universal shell supporting 36+ languages, in terminal code editor with syntax highlight, code compiler (36+ languages). It can run code from pastebin links and files too. "
arch=('any')
url="https://github.com/Shivansh-007/piston-cli"
license=('MIT')
depends=(
'python-pygments'
'python-requests'
'python-prompt_toolkit'
'python-rich'
'python-argparse'
)
makedepends=(
'git'
'python-setuptools'
)
optdepends=()
provides=('piston-cli')
conflicts=('piston-cli')
source=(${pkgname}::${url}"/archive/refs/tags/v"${pkgver}".tar.gz")
sha256sums=('SKIP')
build() {
cd $(ls | grep piston-cli-)
python setup.py build
}
package() {
cd $(ls | grep piston-cli-)
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
pkgver() {
printf "%s" $(curl -s https://api.github.com/repos/Shivansh-007/piston-cli/releases/latest | grep -w "\"name\"" | grep -Eo "[[:digit:]]{1,}.[[:digit:]]{1,}.[[:digit:]]{1,}")
}
|