openjdk8: use create_wrksrc

This commit is contained in:
Đoàn Trần Công Danh 2022-10-27 18:59:10 +07:00
parent e1064aca77
commit 10238e0f4b
1 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ _jdk_home="usr/lib/jvm/java-1.8-openjdk"
# otherwise the same as the normal one, just with aarch64 port added
_repo_ver="aarch64-shenandoah-jdk${version/b/-b}"
archs="x86_64* i686* aarch64* arm* ppc64*"
wrksrc="jdk8u-shenandoah-aarch64-shenandoah-jdk8u${_jdk_update}-b${_jdk_build}"
create_wrksrc=yes
build_style=gnu-configure
configure_args="
--prefix=${XBPS_DESTDIR}/${XBPS_CROSS_TRIPLET}/${pkgname}-${version}/usr/lib
@ -139,9 +139,10 @@ alternatives="
"
post_extract() {
mv jdk8u*/* .
chmod +x configure
for subrepo in corba hotspot jdk jaxws jaxp langtools nashorn; do
mv ../${subrepo}-${_repo_ver} ${subrepo}
mv ${subrepo}-${_repo_ver} ${subrepo}
done
# gcc complains about the signed shift left