1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/.../ibm-jre-142/java-ibm-conf.in
5 # Copyright (C) 2004 - 2020 The T2 SDE Project
6 # Copyright (C) 1998 - 2005 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 # Remember the type of package (jre or jdk)
19 # Prevent executing normal make and install build steps.
20 # This package has custom make and install.
24 # Make prefix same a java_home. This way artifacts like the bin, lib
25 # and doc directory are created at the proper level.
26 . $base/package/*/*/java-jdk-conf.in $java_pkg_type
28 # The archive to be installed/patched depends on the
29 # current architecture.
31 x86-64) srctar="`match_source_file x86.t`" ;;
32 x86-64) srctar="`match_source_file x86_64`" ;;
33 powerpc64) srctar="`match_source_file ppc64`" ;;
34 powerpc) srctar="`match_source_file ppc`" ;;
37 # Make sure there is a file to be patched. If not we
38 # apparently do not support the current architecture.
39 [ "$srctar" ] || abort "No binary for this architecture ($arch) detected!"
42 # Custom installation.
44 if [ $java_pkg_type == jre ]; then
45 # Move the contents of the jre directory up one dir.
46 for entry in $(ls -A jre); do
52 # Copy the extracted archive to the current prefix location.
53 # But make sure to preserve any possible links.
54 tar -c {.,}[a-zA-Z0-9]* | tar -x -C /$prefix
57 hook_add postmake 5 java_postmake