get-scripts annotate javajre @ rev 30
Add javajre
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 25 21:38:56 2015 +0100 (2015-01-25) |
parents | |
children | 9367920b68c4 |
rev | line source |
---|---|
pascal@30 | 1 WEB_SITE="http://java.com/en/download/linux_manual.jsp?locale=en" |
pascal@30 | 2 WGET_URL="$(wget -O - "$WEB_SITE" | sed '/Linux rpm/!d;s/.*href="\([^"]*\).*/\1/;q')" |
pascal@30 | 3 wget -O p.rpm "$WGET_URL" |
pascal@30 | 4 [ -f p.rpm ] || abort_package "Could not download RPM from $WGET_URL. Exiting." |
pascal@30 | 5 |
pascal@30 | 6 VERSION="$(rpm -qip p.rpm | awk '/Version/ { print $3 }')" |
pascal@30 | 7 LICENSE="$(rpm -qip p.rpm | awk '/License/ { print $5 }')" |
pascal@30 | 8 SHORT_DESC="$(rpm -qip p.rpm | sed '/^Summary/!d;s/.*: //')" |
pascal@30 | 9 DEPENDS="xorg-libXtst" |
pascal@30 | 10 |
pascal@30 | 11 mkdir -p $PACKAGE-$VERSION/fs |
pascal@30 | 12 rpm -qip p.rpm | sed '1,/^Description/d' > $PACKAGE-$VERSION/description.txt |
pascal@30 | 13 cd $PACKAGE-$VERSION/fs |
pascal@30 | 14 rpm2cpio ../../p.rpm | cpio -id |
pascal@30 | 15 mkdir usr/lib/mozilla/plugins usr/bin |
pascal@30 | 16 mv usr/java usr/lib |
pascal@30 | 17 ln -s /$(ls -d usr/lib/java/jre*/bin/java) usr/bin |
pascal@30 | 18 ln -s /$(ls -d usr/lib/java/jre*/lib/i386/libnpjp2.so) usr/lib/mozilla/plugins |
pascal@30 | 19 cd ../.. |
pascal@30 | 20 set +e |