blob: 7bbe83a48c4abb26f11d18fce5e41c37b6055c6f (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=ebnf-convert
pkgver=0.67
pkgrel=1
pkgdesc='a tool for converting various forms of BNF and EBNF grammars to W3C-style EBNF'
arch=(any)
url="https://github.com/GuntherRademacher/$pkgname"
license=(Apache-2.0)
depends=(bash
java-runtime)
makedepends=(gradle
java-environment)
_archive="$pkgname-$pkgver"
source=("$url/archive/v$pkgver/$_archive.tar.gz")
sha256sums=('bc5fd34624cd61dd2f6d7dcb691fa3ca4f2749ea51fb7e3a9459b45aed41019f')
build() {
cd "$_archive"
gradle build --no-daemon war
}
package() {
cd "$_archive"
find -name '*.war' -type f
local _sharedir="/usr/share/java/$pkgname"
install -Dm0644 -t "$pkgdir/$_sharedir" "build/libs/$pkgname.war"
cat <<- EOF | install -Dm0755 /dev/stdin "$pkgdir/usr/bin/$pkgname"
#!/usr/bin/env bash
exec java -jar '$_sharedir/$pkgname.war' "\$@"
EOF
}
|