get-scripts rev 31

javajre: tiny fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 26 10:44:20 2015 +0100 (2015-01-26)
parents 3f35c83c536c
children 890d312f93cf
files javajre
line diff
     1.1 --- a/javajre	Sun Jan 25 21:38:56 2015 +0100
     1.2 +++ b/javajre	Mon Jan 26 10:44:20 2015 +0100
     1.3 @@ -1,20 +1,18 @@
     1.4  WEB_SITE="http://java.com/en/download/linux_manual.jsp?locale=en"
     1.5  WGET_URL="$(wget -O - "$WEB_SITE" | sed '/Linux rpm/!d;s/.*href="\([^"]*\).*/\1/;q')"
     1.6 -wget -O p.rpm "$WGET_URL"
     1.7 -[ -f p.rpm ] || abort_package "Could not download RPM from $WGET_URL. Exiting."
     1.8 +wget -O - "$WGET_URL" > p.rpm
     1.9 +[ -s p.rpm ] || abort_package "Could not download RPM from $WGET_URL. Exiting."
    1.10  
    1.11  VERSION="$(rpm -qip p.rpm | awk '/Version/ { print $3 }')"
    1.12  LICENSE="$(rpm -qip p.rpm | awk '/License/ { print $5 }')"
    1.13  SHORT_DESC="$(rpm -qip p.rpm | sed '/^Summary/!d;s/.*: //')"
    1.14  DEPENDS="xorg-libXtst"
    1.15  
    1.16 -mkdir -p $PACKAGE-$VERSION/fs
    1.17 +mkdir -p $PACKAGE-$VERSION/fs/usr/lib/mozilla/plugins $PACKAGE-$VERSION/fs/usr/bin
    1.18  rpm -qip p.rpm | sed '1,/^Description/d' > $PACKAGE-$VERSION/description.txt
    1.19  cd $PACKAGE-$VERSION/fs
    1.20  rpm2cpio ../../p.rpm | cpio -id
    1.21 -mkdir usr/lib/mozilla/plugins usr/bin
    1.22  mv usr/java usr/lib
    1.23  ln -s /$(ls -d usr/lib/java/jre*/bin/java) usr/bin
    1.24  ln -s /$(ls -d usr/lib/java/jre*/lib/i386/libnpjp2.so) usr/lib/mozilla/plugins
    1.25  cd ../..
    1.26 -set +e