get-scripts view javajre @ rev 69
palemoon: fix VERSION
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri Jun 16 02:55:30 2017 -0400 (2017-06-16) |
parents | 6ca05e6839e1 |
children |
line source
1 SHORT_DESC="The lastest java runtime environment"
2 WEB_SITE="http://java.com/en/download/linux_manual.jsp?locale=en"
3 # end of get.list data
4 WGET_URL="$(wget -O - "$WEB_SITE" | sed '/Linux rpm/!d;s/.*href="\([^"]*\).*/\1/;q')"
5 wget -O - "$WGET_URL" > p.rpm
6 [ -s p.rpm ] || abort_package
8 VERSION="$(rpm -qip p.rpm | awk '/Version/ { print $3 }')"
9 LICENSE="$(rpm -qip p.rpm | awk '/License/ { print $5 }')"
10 SHORT_DESC="$(rpm -qip p.rpm | sed '/^Summary/!d;s/.*: //')"
12 mkdir -p $PACKAGE-$VERSION/fs/usr/lib/mozilla/plugins $PACKAGE-$VERSION/fs/usr/bin
13 rpm -qip p.rpm | sed '1,/^Description/d' > $PACKAGE-$VERSION/description.txt
14 cd $PACKAGE-$VERSION/fs
15 rpm2cpio ../../p.rpm | cpio -id
16 mv usr/java usr/lib
17 ln -s /$(ls -d usr/lib/java/jre*/bin/java) usr/bin
18 ln -s /$(ls -d usr/lib/java/jre*/lib/i386/libnpjp2.so) usr/lib/mozilla/plugins
19 cd ../..