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
|
2019-01-16 12:22:38 +01:00
|
|
|
# Depends on: util-linux gtk3 gtk alsa-lib
|
2006-10-07 16:09:54 +00:00
|
|
|
|
|
|
|
name=jre
|
2019-01-16 12:22:38 +01:00
|
|
|
version=1.8.0_202
|
2016-03-25 12:22:54 +01:00
|
|
|
release=1
|
2017-12-13 18:00:58 +01:00
|
|
|
source=(file:///$name-8u${version#*_}-linux-x64.tar.gz)
|
2006-10-07 16:09:54 +00:00
|
|
|
|
|
|
|
build(){
|
2017-12-13 18:00:58 +01:00
|
|
|
cd $name$version
|
2006-10-07 16:09:54 +00:00
|
|
|
|
2017-12-13 18:00:58 +01:00
|
|
|
install -d $PKG/usr/{bin,share/man,lib/$name}
|
|
|
|
mv man/man1 $PKG/usr/share/man
|
|
|
|
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
|
2017-12-13 18:00:58 +01:00
|
|
|
rm $PKG/usr/lib/jre/lib/amd64/libavplugin-*.so
|
2016-02-25 18:31:31 +01:00
|
|
|
|
|
|
|
# revdep
|
|
|
|
install -d $PKG/etc/revdep.d
|
2017-12-13 18:00:58 +01:00
|
|
|
printf '%s\n%s\n' /usr/lib/jre/lib/amd64/{,server} > $PKG/etc/revdep.d/jre
|
2006-10-07 16:09:54 +00:00
|
|
|
}
|