summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlfonso² Peterssen2021-01-16 20:13:40 +0100
committerAlfonso² Peterssen2021-01-16 20:13:40 +0100
commit8fc75ab8232d5c50e684fa730fe1d27328708b3a (patch)
tree36853d62e724a745b1339aa75b36de3da8adaa72
downloadaur-8fc75ab8232d5c50e684fa730fe1d27328708b3a.tar.gz
Initial commit for the jbang package.
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD31
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..9579a15a6b3b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = jbang
+ pkgdesc = Unleash the (scripting) power of Java
+ pkgver = 0.61.1
+ pkgrel = 2
+ url = https://www.jbang.dev
+ arch = any
+ license = MIT
+ depends = bash
+ depends = java-environment>=8
+ optdepends = java-environment>=9: jshell support
+ source = https://github.com/jbangdev/jbang/releases/download/v0.61.1/jbang-0.61.1.tar
+ source = https://raw.githubusercontent.com/jbangdev/jbang/v0.61.1/LICENSE
+ md5sums = c90b6141d354142346e066eb15b5381a
+ md5sums = 12266eb9539bf0a544c7754876115b4a
+ sha256sums = 1062ef5558a6339cbad1093eadffb8590a58c8f5f28ccf304ea2a9cd8ec33692
+ sha256sums = 7c1797962764ae89b1774c44b7ad449e6eaaa83a8e4e4804d965978fe7231d9c
+
+pkgname = jbang
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..20d3344f78aa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Alfonso² Peterssen <a2peterssen+aur ÅT gmail DÖT com>
+pkgname=('jbang')
+pkgver=0.61.1
+pkgrel=2
+pkgdesc="Unleash the (scripting) power of Java"
+arch=('any')
+url="https://www.jbang.dev"
+license=('MIT')
+depends=('bash'
+ 'java-environment>=8')
+optdepends=('java-environment>=9: jshell support')
+source=("https://github.com/jbangdev/jbang/releases/download/v${pkgver}/jbang-${pkgver}.tar"
+ "https://raw.githubusercontent.com/jbangdev/jbang/v${pkgver}/LICENSE")
+md5sums=('c90b6141d354142346e066eb15b5381a'
+ '12266eb9539bf0a544c7754876115b4a')
+sha256sums=('1062ef5558a6339cbad1093eadffb8590a58c8f5f28ccf304ea2a9cd8ec33692'
+ '7c1797962764ae89b1774c44b7ad449e6eaaa83a8e4e4804d965978fe7231d9c')
+
+package() {
+ cd "jbang-${pkgver}"
+ install -d "${pkgdir}/usr/share/jbang"
+
+ cp -r bin "${pkgdir}/usr/share/jbang/"
+
+ rm "${pkgdir}"/usr/share/jbang/bin/*.cmd "${pkgdir}"/usr/share/jbang/bin/*.ps1
+
+ install -d "${pkgdir}/usr/bin"
+ ln -s "/usr/share/jbang/bin/jbang" "${pkgdir}/usr/bin/jbang"
+
+ install -Dm644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}