blob: 7b9cbbb6c4754885961c670713475e730dcba3f8 (
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
33
34
35
36
37
|
# Maintainer: Christian Menard <christian.menard@tu-dresden.de>
pkgname=lf-cli
pkgver=0.8.1
pkgrel=1
pkgdesc="The Lingua Franca compiler and command line tools"
arch=('x86_64' 'aarch64')
url="https://lf-lang.org"
license=('BSD')
depends=('java-runtime=17' 'bash')
conflicts=('lfc-bin' 'lf-cli-bin' 'lf-cli-nightly' 'lf-cli-nightly-bin')
source=("https://github.com/lf-lang/lingua-franca/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('6f35b111a092ceadfe8ce1a372d710b22902f14a88902cfdb4553ba0ed742cda16d1fd7135d7e2380b7bb205b8a6710352580421a268ae8bd6176267c3295a3a')
package() {
cd "${srcdir}/lingua-franca-${pkgver}"
mkdir -p "${srcdir}"/gradle
export GRADLE_USER_HOME=${srcdir}/gradle
./gradlew --no-daemon assemble
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/lfc-cli/LICENSE"
for f in "build/install/lf-cli/lib"/*.jar; do
install -Dm644 "${f}" "${pkgdir}/usr/share/java/${pkgname}/lib/$(basename "$f")"
done
install -Dm755 "build/install/lf-cli/bin/lfc" "${pkgdir}/usr/share/java/${pkgname}/bin/lfc"
install -Dm755 "build/install/lf-cli/bin/lfd" "${pkgdir}/usr/share/java/${pkgname}/bin/lfd"
install -Dm755 "build/install/lf-cli/bin/lff" "${pkgdir}/usr/share/java/${pkgname}/bin/lff"
mkdir -p "${pkgdir}/usr/bin"
cd "${pkgdir}/usr/bin"
ln -s "../share/java/lf-cli/bin/lfc" lfc
ln -s "../share/java/lf-cli/bin/lfd" lfd
ln -s "../share/java/lf-cli/bin/lff" lff
}
|