blob: 694d3fb69ea8558dd4e737341fb312978d5ff613 (
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=3.3.0
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=7acf712e282ec2a79edc2d8f57c6a32a1f5259b7
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=(
'823f8214e56c81f490569c91bf3f5742a74fc0af5605b54f32c4d7a220117d3f'
'76206f1e0783ad818abd5f537609aaf8742d36647400422baed78b6b81c66c00'
)
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/"
}
|