diff options
author | Witalij Berdinskich | 2020-11-07 16:30:36 +0200 |
---|---|---|
committer | Witalij Berdinskich | 2020-11-07 16:30:36 +0200 |
commit | dbb863fb81fa20079f728135f0a3eae621ae69e2 (patch) | |
tree | 9b007ca80ecb7562bd5786ba80791db9fef861cf | |
download | aur-coap-shell.tar.gz |
v1.1.1-1
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 30 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1535dbbdfe27 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = coap-shell + pkgdesc = An interactive, command line interface for interacting with CoAP enabled servers + pkgver = 1.1.1 + pkgrel = 1 + url = https://github.com/tzolov/coap-shell + arch = any + license = Apache + depends = java-runtime>=8 + depends = bash + noextract = coap-shell-1.1.1.jar + source = coap-shell-1.1.1.jar::https://bintray.com/big-data/maven/download_file?file_path=io%2Fdatalake%2Fcoap%2Fcoap-shell%2F1.1.1%2Fcoap-shell-1.1.1.jar + md5sums = 8cd6d0bc0e2836ff769a372c4752d008 + sha256sums = 608efa216888256ad58e92a72da478ea5e46b82c9e95cd3e3eff9a2f2a153dd6 + +pkgname = coap-shell + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b441b2035dbd --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.xz +*.jar +*~ + +pkg +src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bd241a144b0b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Witalij Berdinskich <radio_rogal at keemail dot me> +pkgname=coap-shell +pkgver=1.1.1 +pkgrel=1 +pkgdesc='An interactive, command line interface for interacting with CoAP enabled servers' +arch=('any') +url='https://github.com/tzolov/coap-shell' +license=('Apache') +depends=('java-runtime>=8' 'bash') +source=(${pkgname}-${pkgver}.jar::https://bintray.com/big-data/maven/download_file?file_path=io%2Fdatalake%2Fcoap%2F${pkgname}%2F1.1.1%2F${pkgname}-${pkgver}.jar) +noextract=(${pkgname}-${pkgver}.jar) +md5sums=('8cd6d0bc0e2836ff769a372c4752d008') +sha256sums=('608efa216888256ad58e92a72da478ea5e46b82c9e95cd3e3eff9a2f2a153dd6') + +build() { + cd "$srcdir" + + cat > ${pkgname} << EOF +#!/bin/sh +/usr/bin/java -jar /usr/share/$pkgname/${pkgname}-${pkgver}.jar +EOF +} + +package() { + install -d "$pkgdir"/usr/share/$pkgname + install -m 644 "$srcdir"/${pkgname}-${pkgver}.jar "$pkgdir"/usr/share/$pkgname + + install -d "$pkgdir"/usr/bin + install -m 755 "$srcdir"/$pkgname "$pkgdir"/usr/bin +} |