blob: cea256f75c6561026a01142eac3c122bf3670355 (
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
38
39
40
41
|
# Maintainer:
pkgname=eprosima-fast-dds-gen
pkgver=4.0.2
pkgrel=1
pkgdesc="Fast-DDS IDL code generator tool"
arch=('any')
url="https://github.com/eProsima/Fast-DDS-Gen"
license=('Apache')
depends=('java-environment' 'bash')
makedepends=('gradle' 'git' 'jdk17-openjdk')
optdepends=()
noextract=()
_idl_parser_revision=396ac154bcb4c203d0945392aec9abc296eb046e
source=(
"https://github.com/eProsima/Fast-DDS-Gen/archive/refs/tags/v${pkgver}.tar.gz"
"https://github.com/eProsima/IDL-Parser/archive/${_idl_parser_revision}.zip"
)
sha256sums=(
'd3b8789b5db7eeec2e1bd0eeb41541591957368ad2a24387199ce59e4507619d'
'f93f7681d19fe273cd8973a94fcf1be8f24fbd87d7b127df98cce5bb16c4e227'
)
validpgpkeys=()
build() {
export GRADLE_USER_HOME="${srcdir}/gradle"
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
mkdir -p "${srcdir}"/{gradle,m2}
rm -r "${srcdir}/Fast-DDS-Gen-${pkgver}"/thirdparty/idl-parser
mv "${srcdir}"/IDL-Parser-${_idl_parser_revision} "${srcdir}/Fast-DDS-Gen-${pkgver}"/thirdparty/idl-parser
cd "${srcdir}/Fast-DDS-Gen-${pkgver}"
./gradlew --no-daemon assemble
}
package() {
cd "${srcdir}/Fast-DDS-Gen-${pkgver}"
mkdir -p "gradle_home"
./gradlew --no-daemon install -g "${srcdir}/Fast-DDS-Gen/gradle_home" --install_path="${pkgdir}/usr/"
}
|