diff options
author | Alexandre Teles | 2018-10-06 09:25:41 -0300 |
---|---|---|
committer | Alexandre Teles | 2018-10-06 09:25:41 -0300 |
commit | d0ac50c1f2181ca8e6f8e53cb3babf8bb9bb1f0b (patch) | |
tree | bf7bae4dfcfecfe4af9ac61ba73aa29c3025701b | |
download | aur-d0ac50c1f2181ca8e6f8e53cb3babf8bb9bb1f0b.tar.gz |
INITIAL COMMIT
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bf328370c3f1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = powscript + pkgdesc = Bash dialect transpiler in bash: painless shellscript / indentbased / coffeescript for shellscript / bash for hipsters + pkgver = git + pkgrel = 1 + url = https://github.com/coderofsalvation/powscript + arch = any + license = BSD-2-Clause + makedepends = git + depends = bash + provides = powscript + source = git+https://github.com/coderofsalvation/powscript.git#branch=master + +pkgname = powscript + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..93b32a75e844 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Alexandre Teles (afterSt0rm) <ateles.1@gmail.com> + +pkgname=powscript +pkgver=git +pkgrel=1 +pkgdesc="Bash dialect transpiler in bash: painless shellscript / indentbased / coffeescript for shellscript / bash for hipsters" +arch=('any') +url="https://github.com/coderofsalvation/powscript" +license=("BSD-2-Clause") +depends=('bash') +makedepends=('git') +provides=('powscript') + +source=(git+https://github.com/coderofsalvation/powscript.git#branch=master) + +pkgver() { + + # Get package info from repository + + cat ${pkgname}/package.json | grep version | sed -n 's/.*"version": "\(.*\)",/\1/p' + +} + +package() { + mkdir -p ${pkgdir}/usr/local/bin/ + install --backup --compare ./${pkgname}/powscript ${pkgdir}/usr/local/bin/ +} |