openjdk9-bootstrap: use create_wrksrc

This commit is contained in:
Đoàn Trần Công Danh 2022-10-27 18:59:10 +07:00
parent 10238e0f4b
commit 00bf3350d3

View file

@ -5,7 +5,7 @@ version=9.0.4p12
revision=3 revision=3
_repo_ver=${version/p/+} _repo_ver=${version/p/+}
archs="x86_64* i686* aarch64* arm* ppc64*" archs="x86_64* i686* aarch64* arm* ppc64*"
wrksrc="jdk9u-jdk-${_repo_ver}" create_wrksrc=yes
build_style=gnu-configure build_style=gnu-configure
configure_args=" configure_args="
--prefix=${XBPS_DESTDIR}/${pkgname}-${version}/usr/lib --prefix=${XBPS_DESTDIR}/${pkgname}-${version}/usr/lib
@ -78,9 +78,10 @@ fi
export CCACHE_DISABLE=1 export CCACHE_DISABLE=1
post_extract() { post_extract() {
mv jdk9u*/* .
chmod +x configure chmod +x configure
for subrepo in corba hotspot jdk jaxws jaxp langtools nashorn; do for subrepo in corba hotspot jdk jaxws jaxp langtools nashorn; do
mv ../${subrepo}-jdk-${_repo_ver} ${subrepo} mv ${subrepo}-jdk-${_repo_ver} ${subrepo}
done done
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then if [ "$XBPS_TARGET_LIBC" = "musl" ]; then