2013-03-22 00:52:43 +00:00
|
|
|
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
|
|
|
# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
|
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - removed doc package, --disable-docs in configure, this is measured in lifetimes to build on ARM
|
2015-07-22 12:09:55 +00:00
|
|
|
# - --enable-zero
|
2013-03-22 00:52:43 +00:00
|
|
|
# - added our architectures to set _JARCH
|
|
|
|
# - strip -D_FORTIFY_SOURCE=2 from C/CXXFLAGS
|
2018-03-02 01:23:15 +00:00
|
|
|
# - patch to fix fPIC usage on AArch64
|
2013-03-22 00:52:43 +00:00
|
|
|
|
2013-09-24 01:55:28 +00:00
|
|
|
pkgname=('jre7-openjdk-headless' 'jre7-openjdk' 'jdk7-openjdk' 'openjdk7-src')
|
2013-03-22 00:52:43 +00:00
|
|
|
pkgbase=java7-openjdk
|
|
|
|
_java_ver=7
|
2020-05-07 14:14:52 +00:00
|
|
|
_icedtea_ver=2.6.22
|
2016-08-03 19:49:34 +00:00
|
|
|
#pkgver() {
|
|
|
|
# _updatever=$(grep -E "^JDK_UPDATE_VERSION = (.)+" ${srcdir}/icedtea-${_icedtea_ver}/Makefile.am \
|
|
|
|
# | sed -r 's/^JDK_UPDATE_VERSION = (.+)$/\1/')
|
|
|
|
# echo ${_java_ver}.u${_updatever}_${_icedtea_ver}
|
|
|
|
#}
|
2020-05-07 14:14:52 +00:00
|
|
|
_updatever=261
|
2015-01-24 01:33:35 +00:00
|
|
|
pkgver=${_java_ver}.u${_updatever}_${_icedtea_ver}
|
2020-05-07 14:14:52 +00:00
|
|
|
pkgrel=1
|
2013-03-22 00:52:43 +00:00
|
|
|
|
|
|
|
_bootstrap=0 # 0/1 for quick build or full bootstrap
|
|
|
|
|
2018-02-28 13:52:51 +00:00
|
|
|
arch=('x86_64')
|
2014-08-17 15:10:45 +00:00
|
|
|
url='http://icedtea.classpath.org'
|
2013-03-22 00:52:43 +00:00
|
|
|
license=('custom')
|
|
|
|
options=('!emptydirs')
|
|
|
|
makedepends=('jdk7-openjdk' 'libxp' 'libxslt'
|
2019-09-30 12:43:11 +00:00
|
|
|
'alsa-lib' 'giflib' 'libpng>=1.5.7' 'gtk2'
|
2014-03-29 16:38:21 +00:00
|
|
|
'java-rhino' 'libpulse>=0.9.11' 'zip' 'unzip' 'cpio' 'fastjar' 'wget' 'procps-ng' 'inetutils'
|
2015-07-20 13:37:39 +00:00
|
|
|
'eclipse-ecj' 'pcsclite' 'lksctp-tools')
|
2020-05-07 14:14:52 +00:00
|
|
|
# checkdepends=('procps-ng') # requires now systemtap and maybe more from AUR -> tests disabled
|
|
|
|
|
2019-09-30 12:43:11 +00:00
|
|
|
_antver=1.9.14
|
2014-06-14 17:18:40 +00:00
|
|
|
_icedtea_url=http://icedtea.classpath.org/download
|
2014-07-16 12:47:34 +00:00
|
|
|
_drops_url=${_icedtea_url}/drops/icedtea7/${_icedtea_ver}
|
2017-02-18 21:34:43 +00:00
|
|
|
source=(${_icedtea_url}/source/icedtea-${_icedtea_ver}.tar.xz{,.sig}
|
2014-07-16 12:47:34 +00:00
|
|
|
icedtea_${_icedtea_ver}_openjdk.tar.bz2::${_drops_url}/openjdk.tar.bz2
|
|
|
|
icedtea_${_icedtea_ver}_corba.tar.bz2::${_drops_url}/corba.tar.bz2
|
|
|
|
icedtea_${_icedtea_ver}_jaxp.tar.bz2::${_drops_url}/jaxp.tar.bz2
|
|
|
|
icedtea_${_icedtea_ver}_jaxws.tar.bz2::${_drops_url}/jaxws.tar.bz2
|
|
|
|
icedtea_${_icedtea_ver}_jdk.tar.bz2::${_drops_url}/jdk.tar.bz2
|
|
|
|
icedtea_${_icedtea_ver}_langtools.tar.bz2::${_drops_url}/langtools.tar.bz2
|
|
|
|
icedtea_${_icedtea_ver}_hotspot.tar.bz2::${_drops_url}/hotspot.tar.bz2
|
2019-09-30 12:43:11 +00:00
|
|
|
https://archive.apache.org/dist/ant/binaries/apache-ant-${_antver}-bin.tar.bz2
|
2013-03-22 00:52:43 +00:00
|
|
|
fontconfig-paths.diff
|
2018-03-02 01:23:15 +00:00
|
|
|
openjdk7_nonreparenting-wm.diff
|
2019-09-30 12:43:11 +00:00
|
|
|
icedtea-jdk-xattr.diff
|
|
|
|
fix-xattr-include.patch
|
2018-03-02 01:23:15 +00:00
|
|
|
text-relocations.diff)
|
2017-02-18 21:34:43 +00:00
|
|
|
# EdDSA key may require `keyserver sks-keyservers.net` in GPG config
|
|
|
|
validpgpkeys=('5132579DD1540ED23E04C5A0CFDA0F9B35964222') # Andrew John Hughes
|
2015-07-20 13:37:39 +00:00
|
|
|
|
|
|
|
# http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2357
|
|
|
|
|
2020-05-07 14:14:52 +00:00
|
|
|
sha256sums=('34fa9f3898e72f7ec2e7b67ccd947e1fd9a7a943d1969b0cf24bc56391da33c0'
|
2017-02-18 21:34:43 +00:00
|
|
|
'SKIP'
|
2020-05-07 14:14:52 +00:00
|
|
|
'65fe3b8d22e1bceaf374402346ad4649e149d3b3329c3b0fa2ed0ad9669a1818'
|
|
|
|
'a07a927a03e1e4199c77ef352aaaf6067101d076a1448a930e1ef2654e9185db'
|
|
|
|
'988ee7a724385e482137f3962db151c3e522a94dd6ae7285941a07929868557a'
|
|
|
|
'8cae72b86bcf782506580ab0efa5c1221cb80b967ea432d1ea081e0d557637da'
|
|
|
|
'3719a0a6394e4674008fb2c62f428bcae2e8695a2462cf49efec5d5711f8d112'
|
|
|
|
'9625754a76451e32f6df941c375102cb876737ae607fd76893cb83cfc3657021'
|
|
|
|
'dad4c549767780314f27558873eb12689fecf17aa1ae3792e77924c4350dca43'
|
2019-09-30 12:43:11 +00:00
|
|
|
'efad74bd98d9eb72b080a3e08f5b17118e05372d22e3aa3bc0bd1686aa71361c'
|
2015-04-16 12:43:48 +00:00
|
|
|
'9ad943ceb3dbcdf45d72974fc3667886a7ed65c69ab9abc17be5412827551a7f'
|
2018-03-02 01:23:15 +00:00
|
|
|
'56b919ababb13bd6afdcdaceb112b529b6e82539255f2dae9a7e5eb91645164b'
|
2019-09-30 12:43:11 +00:00
|
|
|
'8da7248a72c60f4cb82c33712bdd8ce8f25b0cd147816efb7112f18a752fcabd'
|
|
|
|
'9a48d91af72d28d7f0fca8ea6f5e42085d7c877c7141a7d895331ab1f5882086'
|
2018-03-02 01:23:15 +00:00
|
|
|
'6dd92db9ba302141c94a2031082e3e130bcb370a5adcb8185467dd22cbff6b51')
|
2013-03-22 00:52:43 +00:00
|
|
|
|
2014-07-16 12:47:34 +00:00
|
|
|
noextract=(icedtea_${_icedtea_ver}_openjdk.tar.bz2
|
|
|
|
icedtea_${_icedtea_ver}_corba.tar.bz2
|
|
|
|
icedtea_${_icedtea_ver}_jaxp.tar.bz2
|
|
|
|
icedtea_${_icedtea_ver}_jaxws.tar.bz2
|
|
|
|
icedtea_${_icedtea_ver}_jdk.tar.bz2
|
2014-08-17 15:10:45 +00:00
|
|
|
icedtea_${_icedtea_ver}_langtools.tar.bz2
|
2014-07-16 12:47:34 +00:00
|
|
|
icedtea_${_icedtea_ver}_hotspot.tar.bz2)
|
2014-06-14 17:18:40 +00:00
|
|
|
|
|
|
|
[ "$CARCH" = "x86_64" ] && _JARCH=amd64
|
|
|
|
[ "$CARCH" = "i686" ] && _JARCH=i386
|
|
|
|
[ "$CARCH" = "arm" -o "$CARCH" = "armv6h" -o "$CARCH" = "armv7h" ] && _JARCH=arm
|
2015-07-22 12:09:55 +00:00
|
|
|
[ "$CARCH" = "aarch64" ] && _JARCH=aarch64
|
2014-06-14 17:18:40 +00:00
|
|
|
|
|
|
|
_jvmdir=/usr/lib/jvm/java-7-openjdk
|
|
|
|
_imgdir="icedtea-${_icedtea_ver}/openjdk.build/j2sdk-image"
|
|
|
|
_nonheadless=(bin/policytool
|
|
|
|
lib/${_JARCH}/libjsoundalsa.so
|
|
|
|
lib/${_JARCH}/libsplashscreen.so
|
|
|
|
lib/${_JARCH}/xawt/libmawt.so)
|
|
|
|
|
2019-09-30 12:43:11 +00:00
|
|
|
prepare() {
|
|
|
|
cp "${srcdir}"/*.diff "${srcdir}"/icedtea-${_icedtea_ver}/patches
|
|
|
|
|
|
|
|
cd "${srcdir}/icedtea-${_icedtea_ver}"
|
|
|
|
patch -Np1 -i ../fix-xattr-include.patch
|
|
|
|
./autogen.sh
|
|
|
|
}
|
|
|
|
|
2013-03-22 00:52:43 +00:00
|
|
|
build() {
|
|
|
|
cd "${srcdir}/icedtea-${_icedtea_ver}"
|
|
|
|
|
|
|
|
CFLAGS=`echo $CFLAGS | sed -e 's/-D_FORTIFY_SOURCE=2//'` && CXXFLAGS="$CFLAGS"
|
|
|
|
|
|
|
|
export ALT_PARALLEL_COMPILE_JOBS="${MAKEFLAGS/-j}"
|
|
|
|
export HOTSPOT_BUILD_JOBS="${ALT_PARALLEL_COMPILE_JOBS}"
|
|
|
|
|
2013-05-20 15:42:12 +00:00
|
|
|
export DISTRIBUTION_PATCHES="patches/fontconfig-paths.diff \
|
2018-03-02 01:23:15 +00:00
|
|
|
patches/openjdk7_nonreparenting-wm.diff \
|
2019-09-30 12:43:11 +00:00
|
|
|
patches/icedtea-jdk-xattr.diff \
|
2018-03-02 01:23:15 +00:00
|
|
|
patches/text-relocations.diff"
|
2013-03-22 00:52:43 +00:00
|
|
|
|
|
|
|
if [ "$_bootstrap" = "1" ]; then
|
|
|
|
BOOTSTRAPOPT="--enable-bootstrap --with-ecj-jar=/usr/share/java/ecj.jar"
|
|
|
|
else
|
|
|
|
BOOTSTRAPOPT="--disable-bootstrap"
|
|
|
|
fi
|
|
|
|
|
2019-09-30 12:43:11 +00:00
|
|
|
export EXTRA_CFLAGS="$CFLAGS $CPPFLAGS -std=gnu++98 -Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-strict-overflow"
|
|
|
|
export EXTRA_LDFLAGS="$LDFLAGS"
|
|
|
|
|
|
|
|
export PATH="${srcdir}/apache-ant-${_antver}/bin:$PATH"
|
2013-03-22 00:52:43 +00:00
|
|
|
./configure \
|
2014-06-14 17:18:40 +00:00
|
|
|
${BOOTSTRAPOPT} \
|
2013-03-22 00:52:43 +00:00
|
|
|
--with-parallel-jobs="${MAKEFLAGS/-j}" \
|
|
|
|
--disable-tests \
|
|
|
|
--disable-downloading --disable-Werror \
|
2014-06-14 17:18:40 +00:00
|
|
|
--with-pkgversion="Arch Linux ARM build ${pkgver}-${pkgrel}-${CARCH}" \
|
2013-03-22 00:52:43 +00:00
|
|
|
--with-jdk-home=${JAVA_HOME} \
|
2014-07-16 12:47:34 +00:00
|
|
|
--with-openjdk-src-zip="${srcdir}/icedtea_${_icedtea_ver}_openjdk.tar.bz2" \
|
|
|
|
--with-hotspot-src-zip="${srcdir}/icedtea_${_icedtea_ver}_hotspot.tar.bz2" \
|
|
|
|
--with-corba-src-zip="${srcdir}/icedtea_${_icedtea_ver}_corba.tar.bz2" \
|
|
|
|
--with-jaxp-src-zip="${srcdir}/icedtea_${_icedtea_ver}_jaxp.tar.bz2" \
|
|
|
|
--with-jaxws-src-zip="${srcdir}/icedtea_${_icedtea_ver}_jaxws.tar.bz2" \
|
|
|
|
--with-jdk-src-zip="${srcdir}/icedtea_${_icedtea_ver}_jdk.tar.bz2" \
|
|
|
|
--with-langtools-src-zip="${srcdir}/icedtea_${_icedtea_ver}_langtools.tar.bz2" \
|
2013-03-22 00:52:43 +00:00
|
|
|
--enable-nss \
|
|
|
|
--with-rhino \
|
|
|
|
--disable-docs \
|
2015-07-22 12:09:55 +00:00
|
|
|
--enable-zero
|
2013-03-22 00:52:43 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "${srcdir}/icedtea-${_icedtea_ver}"
|
2020-05-07 14:14:52 +00:00
|
|
|
#make -k check
|
2013-03-22 00:52:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_jre7-openjdk-headless() {
|
2014-06-14 17:18:40 +00:00
|
|
|
pkgdesc='OpenJDK Java 7 headless runtime environment'
|
2014-12-11 14:10:00 +00:00
|
|
|
depends=('java-runtime-common' 'libjpeg-turbo' 'lcms2' 'nss' 'ca-certificates-utils' 'libcups')
|
|
|
|
optdepends=('fontconfig: needed for Java Mauve support - libmawt.so'
|
2014-06-14 17:18:40 +00:00
|
|
|
'java-rhino: for some JavaScript support')
|
2014-08-17 15:10:45 +00:00
|
|
|
provides=('java-runtime-headless=7' 'java-runtime-headless-openjdk=7')
|
2013-03-22 00:52:43 +00:00
|
|
|
conflicts=('openjdk6')
|
2014-08-17 15:10:45 +00:00
|
|
|
# TODO remove after some time
|
|
|
|
replaces=('jre7-openjdk-headless-wm')
|
2014-06-14 17:18:40 +00:00
|
|
|
# Upstream config files that should go to etc and get backup
|
|
|
|
_backup_etc=(etc/java-7-openjdk/${_JARCH}/jvm.cfg
|
|
|
|
etc/java-7-openjdk/calendars.properties
|
|
|
|
etc/java-7-openjdk/content-types.properties
|
|
|
|
etc/java-7-openjdk/flavormap.properties
|
|
|
|
etc/java-7-openjdk/fontconfig.bfc
|
|
|
|
etc/java-7-openjdk/fontconfig.properties
|
|
|
|
etc/java-7-openjdk/images/cursors/cursors.properties
|
|
|
|
etc/java-7-openjdk/logging.properties
|
|
|
|
etc/java-7-openjdk/management/jmxremote.access
|
|
|
|
etc/java-7-openjdk/management/jmxremote.password
|
|
|
|
etc/java-7-openjdk/management/management.properties
|
|
|
|
etc/java-7-openjdk/management/snmp.acl
|
|
|
|
etc/java-7-openjdk/net.properties
|
|
|
|
etc/java-7-openjdk/psfont.properties.ja
|
|
|
|
etc/java-7-openjdk/psfontj2d.properties
|
|
|
|
etc/java-7-openjdk/security/java.policy
|
|
|
|
etc/java-7-openjdk/security/java.security
|
|
|
|
etc/java-7-openjdk/security/nss.cfg
|
|
|
|
etc/java-7-openjdk/sound.properties
|
|
|
|
etc/java-7-openjdk/tz.properties)
|
2014-08-17 15:10:45 +00:00
|
|
|
backup=(${_backup_etc[@]})
|
2013-03-22 00:52:43 +00:00
|
|
|
install=jre7-openjdk-headless.install
|
|
|
|
|
2014-06-14 17:18:40 +00:00
|
|
|
cd "${srcdir}/${_imgdir}/jre"
|
2013-03-22 00:52:43 +00:00
|
|
|
|
2014-06-14 17:18:40 +00:00
|
|
|
install -d -m755 "${pkgdir}${_jvmdir}/jre"
|
|
|
|
cp -a bin lib "${pkgdir}${_jvmdir}/jre"
|
2013-03-22 00:52:43 +00:00
|
|
|
|
2014-06-14 17:18:40 +00:00
|
|
|
# Set config files
|
|
|
|
mv "${pkgdir}${_jvmdir}"/jre/lib/fontconfig.{Ubuntu.properties.src,properties}
|
|
|
|
mv "${pkgdir}${_jvmdir}"/jre/lib/fontconfig.{Ubuntu.bfc,bfc}
|
|
|
|
mv "${pkgdir}${_jvmdir}"/jre/lib/management/jmxremote.password{.template,}
|
|
|
|
mv "${pkgdir}${_jvmdir}"/jre/lib/management/snmp.acl{.template,}
|
|
|
|
rm -f "${pkgdir}${_jvmdir}"/jre/lib/fontconfig.*.bfc
|
|
|
|
rm -f "${pkgdir}${_jvmdir}"/jre/lib/fontconfig.*.properties.src
|
|
|
|
rm -f "${pkgdir}${_jvmdir}"/jre/lib/fontconfig.properties.src
|
2013-03-22 00:52:43 +00:00
|
|
|
|
2014-06-14 17:18:40 +00:00
|
|
|
# Remove 'non-headless' files
|
|
|
|
for f in ${_nonheadless[@]}; do
|
|
|
|
rm "${pkgdir}${_jvmdir}/jre/${f}"
|
|
|
|
done
|
2013-03-22 00:52:43 +00:00
|
|
|
|
2014-06-14 17:18:40 +00:00
|
|
|
# Man pages
|
|
|
|
pushd "${pkgdir}${_jvmdir}/jre/bin"
|
|
|
|
install -d -m 755 "${pkgdir}"/usr/share/man/{,ja/}man1/
|
|
|
|
for file in *; do
|
|
|
|
install -m 644 "${srcdir}/${_imgdir}/man/man1/${file}.1" \
|
|
|
|
"${pkgdir}/usr/share/man/man1/${file}.1"
|
|
|
|
install -m 644 "${srcdir}/${_imgdir}/man/ja/man1/${file}.1" \
|
|
|
|
"${pkgdir}/usr/share/man/ja/man1/${file}.1"
|
2013-03-22 00:52:43 +00:00
|
|
|
done
|
2014-06-14 17:18:40 +00:00
|
|
|
popd
|
2013-03-22 00:52:43 +00:00
|
|
|
|
2014-12-11 14:10:00 +00:00
|
|
|
# Link JKS keystore from ca-certificates-utils
|
2014-06-14 17:18:40 +00:00
|
|
|
rm -f "${pkgdir}${_jvmdir}/jre/lib/security/cacerts"
|
2013-09-24 01:55:28 +00:00
|
|
|
ln -sf /etc/ssl/certs/java/cacerts "${pkgdir}${_jvmdir}/jre/lib/security/cacerts"
|
2013-03-22 00:52:43 +00:00
|
|
|
|
|
|
|
# Install license
|
2014-06-14 17:18:40 +00:00
|
|
|
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgbase}/"
|
2013-03-22 00:52:43 +00:00
|
|
|
install -m644 ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README \
|
2014-06-14 17:18:40 +00:00
|
|
|
"${pkgdir}/usr/share/licenses/${pkgbase}"
|
2013-08-18 18:28:11 +00:00
|
|
|
ln -sf /usr/share/licenses/${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
|
2014-06-14 17:18:40 +00:00
|
|
|
|
|
|
|
# Move config files that were set in _backup_etc from ./lib to /etc
|
|
|
|
for file in ${_backup_etc[@]}; do
|
|
|
|
_filepkgpath=${_jvmdir}/jre/lib/${file#etc/java-7-openjdk/}
|
|
|
|
install -D -m 644 "${pkgdir}${_filepkgpath}" "${pkgdir}/${file}"
|
|
|
|
ln -sf /${file} "${pkgdir}${_filepkgpath}"
|
2013-03-22 00:52:43 +00:00
|
|
|
done
|
|
|
|
}
|
2014-06-14 17:18:40 +00:00
|
|
|
|
2013-03-22 00:52:43 +00:00
|
|
|
package_jre7-openjdk() {
|
2014-06-14 17:18:40 +00:00
|
|
|
pkgdesc='OpenJDK Java 7 full runtime environment'
|
2014-08-17 15:10:45 +00:00
|
|
|
depends=("jre7-openjdk-headless=${pkgver}-${pkgrel}" 'xdg-utils' 'hicolor-icon-theme')
|
2014-12-11 14:10:00 +00:00
|
|
|
optdepends=('icedtea-web: web browser plugin + Java Web Start'
|
2013-03-22 00:52:43 +00:00
|
|
|
'alsa-lib: for basic sound support'
|
|
|
|
'giflib: for gif format support'
|
|
|
|
'libpulse: for advanced sound support'
|
|
|
|
'gtk2: for the Gtk+ look and feel - desktop usage'
|
|
|
|
'libxtst: linked in xawt/libmawt.so - desktop usage')
|
2014-08-17 15:10:45 +00:00
|
|
|
provides=('java-runtime=7' 'java-runtime-openjdk=7')
|
2013-03-22 00:52:43 +00:00
|
|
|
conflicts=('openjdk6')
|
2014-08-17 15:10:45 +00:00
|
|
|
# TODO remove after some time
|
|
|
|
replaces=('jre7-openjdk-wm')
|
2014-06-14 17:18:40 +00:00
|
|
|
install=jre7-openjdk.install
|
|
|
|
|
|
|
|
cd "${srcdir}/${_imgdir}/jre"
|
|
|
|
|
|
|
|
for f in ${_nonheadless[@]}; do
|
|
|
|
install -D ${f} "${pkgdir}${_jvmdir}/jre/${f}"
|
|
|
|
done
|
|
|
|
|
|
|
|
# Man pages
|
|
|
|
pushd "${pkgdir}${_jvmdir}/jre/bin"
|
|
|
|
install -d -m 755 "${pkgdir}"/usr/share/man/{,ja/}man1/
|
2013-03-22 00:52:43 +00:00
|
|
|
for file in *; do
|
2014-06-14 17:18:40 +00:00
|
|
|
install -m 644 "${srcdir}/${_imgdir}/man/man1/${file}.1" \
|
|
|
|
"${pkgdir}/usr/share/man/man1/${file}.1"
|
|
|
|
install -m 644 "${srcdir}/${_imgdir}/man/ja/man1/${file}.1" \
|
|
|
|
"${pkgdir}/usr/share/man/ja/man1/${file}.1"
|
2013-03-22 00:52:43 +00:00
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2014-08-17 15:10:45 +00:00
|
|
|
for s in 16 24 32 48; do
|
|
|
|
install -D -m 644 \
|
|
|
|
"${srcdir}/icedtea-${_icedtea_ver}/openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png" \
|
|
|
|
"${pkgdir}/usr/share/icons/hicolor/${s}x${s}/apps/java.png"
|
2013-03-22 00:52:43 +00:00
|
|
|
done
|
2014-06-14 17:18:40 +00:00
|
|
|
|
2013-03-22 00:52:43 +00:00
|
|
|
# Install desktop files.
|
2014-06-14 17:18:40 +00:00
|
|
|
install -d -m755 "${pkgdir}/usr/share/applications"
|
2017-08-11 12:28:06 +00:00
|
|
|
sed "s#_BINDIR_#${_jvmdir}/jre/bin#" \
|
|
|
|
"${srcdir}/icedtea-${_icedtea_ver}/policytool.desktop" \
|
|
|
|
> "${pkgdir}/usr/share/applications/policytool.desktop"
|
2013-08-18 18:28:11 +00:00
|
|
|
|
|
|
|
# link license
|
2014-06-14 17:18:40 +00:00
|
|
|
install -d -m755 "${pkgdir}/usr/share/licenses"
|
2013-08-18 18:28:11 +00:00
|
|
|
ln -sf /usr/share/licenses/${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
|
2013-03-22 00:52:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_jdk7-openjdk() {
|
2014-06-14 17:18:40 +00:00
|
|
|
pkgdesc='OpenJDK Java 7 development kit'
|
2014-10-12 20:27:25 +00:00
|
|
|
depends=('java-environment-common' "jre7-openjdk=${pkgver}-${pkgrel}")
|
2014-08-17 15:10:45 +00:00
|
|
|
provides=('java-environment=7' 'java-environment-openjdk=7')
|
|
|
|
replaces=('openjdk6' 'jdk7-openjdk-wm')
|
|
|
|
install=jdk7-openjdk.install
|
2013-03-22 00:52:43 +00:00
|
|
|
|
2014-06-14 17:18:40 +00:00
|
|
|
cd "${srcdir}/${_imgdir}"
|
2013-03-22 00:52:43 +00:00
|
|
|
|
|
|
|
# Main files
|
2014-06-14 17:18:40 +00:00
|
|
|
install -d -m755 "${pkgdir}${_jvmdir}"
|
2013-03-22 00:52:43 +00:00
|
|
|
|
2014-06-14 17:18:40 +00:00
|
|
|
cp -a include lib "${pkgdir}${_jvmdir}"
|
2013-03-22 00:52:43 +00:00
|
|
|
|
|
|
|
# 'bin' files
|
|
|
|
pushd bin
|
2014-06-14 17:18:40 +00:00
|
|
|
install -d -m755 "${pkgdir}${_jvmdir}/bin/" \
|
|
|
|
"${pkgdir}"/usr/share/man/{,ja/}man1/
|
2013-03-22 00:52:43 +00:00
|
|
|
|
|
|
|
# 'java-rmi.cgi' will be handled separately as it should not be in the PATH and has no man page
|
|
|
|
for b in $(ls | grep -v java-rmi.cgi); do
|
|
|
|
if [ -e ../jre/bin/${b} ]; then
|
|
|
|
# Provide a link of the jre binary in the jdk/bin/ directory
|
2014-06-14 17:18:40 +00:00
|
|
|
ln -s ../jre/bin/${b} "${pkgdir}${_jvmdir}/bin/${b}"
|
2013-03-22 00:52:43 +00:00
|
|
|
else
|
|
|
|
# Copy binary to jdk/bin/
|
2014-06-14 17:18:40 +00:00
|
|
|
install -m755 ${b} "${pkgdir}${_jvmdir}/bin/${b}"
|
2013-03-22 00:52:43 +00:00
|
|
|
# Copy man page
|
2014-06-14 17:18:40 +00:00
|
|
|
install -m644 ../man/man1/${b}.1 "${pkgdir}/usr/share/man/man1/${b}.1"
|
|
|
|
install -m644 ../man/ja/man1/${b}.1 "${pkgdir}/usr/share/man/ja/man1/${b}.1"
|
2013-03-22 00:52:43 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Handling 'java-rmi.cgi' separately
|
2014-06-14 17:18:40 +00:00
|
|
|
install -D -m755 bin/java-rmi.cgi "${pkgdir}${_jvmdir}/bin/java-rmi.cgi"
|
|
|
|
|
|
|
|
# Install desktop files.
|
|
|
|
install -d -m755 "${pkgdir}/usr/share/applications"
|
2017-08-11 12:28:06 +00:00
|
|
|
sed "s#_BINDIR_#${_jvmdir}/bin#" \
|
|
|
|
"${srcdir}/icedtea-${_icedtea_ver}/jconsole.desktop" \
|
|
|
|
> "${pkgdir}/usr/share/applications/jconsole.desktop"
|
|
|
|
|
2013-03-22 00:52:43 +00:00
|
|
|
|
2013-08-18 18:28:11 +00:00
|
|
|
# link license
|
2014-06-14 17:18:40 +00:00
|
|
|
install -d -m755 "${pkgdir}/usr/share/licenses"
|
2013-08-18 18:28:11 +00:00
|
|
|
ln -sf /usr/share/licenses/${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
|
2013-03-22 00:52:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_openjdk7-src() {
|
2014-06-14 17:18:40 +00:00
|
|
|
pkgdesc='OpenJDK Java 7 sources'
|
2013-03-22 00:52:43 +00:00
|
|
|
replaces=('openjdk6-src')
|
2014-06-14 17:18:40 +00:00
|
|
|
|
|
|
|
install -D "${srcdir}/${_imgdir}/src.zip" "${pkgdir}${_jvmdir}/src.zip"
|
2013-03-22 00:52:43 +00:00
|
|
|
}
|