2014-12-02 13:21:08 +01:00
|
|
|
# Description: Java Runtime Environment
|
|
|
|
# URL: http://www.oracle.com/technetwork/java/javase/overview/index.html
|
2009-03-21 09:37:17 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Packager: Simone Rota, sip at crux dot nu
|
2006-10-07 16:09:54 +00:00
|
|
|
|
|
|
|
name=jre
|
2016-02-07 17:55:00 +01:00
|
|
|
version=1.8.0_74
|
2016-02-25 18:31:31 +01:00
|
|
|
release=2
|
2015-01-20 16:45:24 +01:00
|
|
|
source=(file:///$name-8u${version#*_}-linux-x64.tar.gz)
|
2006-10-07 16:09:54 +00:00
|
|
|
|
|
|
|
build(){
|
2011-08-31 10:39:05 +02:00
|
|
|
cd $name$version
|
2006-10-07 16:09:54 +00:00
|
|
|
|
2016-02-25 18:31:31 +01:00
|
|
|
install -d $PKG/usr/{bin,share/man,lib/$name}
|
|
|
|
mv man/man1 $PKG/usr/share/man
|
2013-04-17 09:39:49 +02:00
|
|
|
mv bin lib plugin $PKG/usr/lib/$name
|
2011-02-16 23:55:43 +01:00
|
|
|
|
2016-02-25 18:31:31 +01:00
|
|
|
# several symlinks
|
2013-04-17 09:39:49 +02:00
|
|
|
ln -s $name $PKG/usr/lib/java
|
2009-03-21 09:37:17 +01:00
|
|
|
ln -s ../lib/java/bin/java $PKG/usr/bin/java
|
|
|
|
ln -s ../lib/java/bin/javaws $PKG/usr/bin/javaws
|
|
|
|
ln -s ../lib/java/bin/keytool $PKG/usr/bin/keytool
|
2014-10-20 18:35:36 +02:00
|
|
|
ln -s ../lib/java/bin/jcontrol $PKG/usr/bin/jcontrol
|
2016-02-25 18:31:31 +01:00
|
|
|
|
|
|
|
# remove broken libraries
|
|
|
|
rm $PKG/usr/lib/jre/lib/amd64/libavplugin-*.so
|
|
|
|
|
|
|
|
# revdep
|
|
|
|
install -d $PKG/etc/revdep.d
|
|
|
|
printf '%s\n%s\n' /usr/lib/jre/lib/amd64/{,server} > $PKG/etc/revdep.d/jre
|
2006-10-07 16:09:54 +00:00
|
|
|
}
|