summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd241a144b0b6562319440d747a99100bcce7f4b (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
# 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
}