From 7897ea16b6e04c59baa06b7616c36afc9252c9b7 Mon Sep 17 00:00:00 2001 From: Isaac David Date: Fri, 20 May 2016 08:34:29 -0500 Subject: icedtea-web: add new package to [libre] -> https://labs.parabola.nu/issues/998 --- libre/icedtea-web/PKGBUILD | 98 ++++++++++++++++++++++++++++++++ libre/icedtea-web/install_icedtea-web.sh | 11 ++++ 2 files changed, 109 insertions(+) create mode 100644 libre/icedtea-web/PKGBUILD create mode 100644 libre/icedtea-web/install_icedtea-web.sh diff --git a/libre/icedtea-web/PKGBUILD b/libre/icedtea-web/PKGBUILD new file mode 100644 index 000000000..74341a9d9 --- /dev/null +++ b/libre/icedtea-web/PKGBUILD @@ -0,0 +1,98 @@ +# Maintainer (Arch): Andreas Radke +# Maintainer (Arch): Guillaume ALAUX +# Maintainer: Isaac David + +pkgbase=icedtea-web +pkgname=('icedtea-web' 'icedtea-web-doc') +pkgver=1.6.2 +pkgrel=2.parabola1 +arch=('i686' 'x86_64' 'armv7h') +url='http://icedtea.classpath.org/wiki/IcedTea-Web' +license=('GPL2') +makedepends=('java-environment-openjdk' 'zip' 'libxtst' 'npapi-sdk' 'rhino' 'junit' + 'epiphany') +case "$CARCH" in + i686|x86_64) makedepends+=('iceweasel') ;; + armv7h) makedepends+=('iceape') ;; +esac +optdepends=('rhino: for using proxy auto config files') +# Due to broken path names in the tarball that fails with LANG=C in our chroot +noextract=("${pkgbase}-${pkgver}.tar.gz") +source=(http://icedtea.classpath.org/download/source/${pkgbase}-${pkgver}.tar.gz) +sha256sums=('ce67034096d6b960e2b6cfb5c41a7bd6b30eb2ec7f13bf3ecdb477ff6ce69300') + +prepare() { + cd "${srcdir}" + LANG=en_US.UTF-8 bsdtar -x -f "${srcdir}"/${pkgbase}-${pkgver}.tar.gz +} + +build() { + case "$CARCH" in + i686|x86_64) firefox_replacement="iceweasel" ;; + armv7h) firefox_replacement="iceape" ;; + esac + cd "${srcdir}"/${pkgbase}-${pkgver} + ./configure \ + --prefix=/usr/share/${pkgbase} \ + --datarootdir=/usr/share \ + --with-jdk-home=/usr/lib/jvm/default \ + --with-jre-home=/usr/lib/jvm/default-runtime \ + --with-java=/usr/bin/java \ + --with-browser-tests \ + --with-firefox=/usr/bin/"${firefox_replacement}" \ + --with-epiphany=/usr/bin/epiphany + make +} + +#check() { +# cd "${srcdir}"/${pkgbase}-${pkgver} +# # as more tests have been added some are expectged to fail +# # see http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-March/017566.html +# make -k check +#} + + +package_icedtea-web() { + + pkgdesc='Free web browser plugin to run applets written in Java and an implementation of Java Web Start, without nonfree firefox make dependency' + depends=('java-runtime-openjdk' 'desktop-file-utils') + provides=('java-web-start') + replaces=('icedtea-web-java7') + install=install_${pkgname}.sh + + cd "${srcdir}"/${pkgbase}-${pkgver} + # possible make target (see bottom of Makefile.am: install-exec-local install-data-local + make DESTDIR="${pkgdir}" install-exec-local install-data-local + + # Install desktop files. + install -m 755 -d "${pkgdir}"/usr/share/{applications,pixmaps} + install -m 644 javaws.png "${pkgdir}"/usr/share/pixmaps + install -m 644 {javaws,itweb-settings}.desktop "${pkgdir}"/usr/share/applications + # remove splitted doc files + rm -rf "${pkgdir}"/usr/share/doc + + # link binaries into /usr/bin + jre/bin + install -m 755 -d "${pkgdir}"/usr/bin + pushd "${pkgdir}"/usr/share/${pkgbase}/bin + for file in *; do + ln -sf /usr/share/${pkgbase}/bin/${file} "${pkgdir}"/usr/bin + done + popd + + # link the mozilla-plugin - test it here http://www.java.com/en/download/help/testvm.xml + install -m 755 -d "${pkgdir}"/usr/lib/mozilla/plugins/ + ln -sf /usr/share/${pkgbase}/lib/IcedTeaPlugin.so "${pkgdir}"/usr/lib/mozilla/plugins/ +} + +package_icedtea-web-doc() { + + pkgdesc='icedtea-web browser plugin + Java WebStart - documentation files' + replaces=('icedtea-web-java7-doc') + + cd "${srcdir}"/${pkgbase}-${pkgver} + make DESTDIR="${pkgdir}" install-data-local + # remove javaws about and man page + rm -rf "${pkgdir}"/usr/lib + rm -rf "${pkgdir}"/usr/share/man + rm -rf "${pkgdir}"/usr/share/icedtea-web # conflicting and unneeded file it seems +} diff --git a/libre/icedtea-web/install_icedtea-web.sh b/libre/icedtea-web/install_icedtea-web.sh new file mode 100644 index 000000000..80312d4a6 --- /dev/null +++ b/libre/icedtea-web/install_icedtea-web.sh @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + update-desktop-database -q +} + +post_remove() { + update-desktop-database -q +} -- cgit v1.2.3-54-g00ecf