31 lines
906 B
Plaintext
31 lines
906 B
Plaintext
# Description: Java Runtime Environment
|
|
# URL: http://www.oracle.com/technetwork/java/javase/overview/index.html
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: util-linux alsa-lib gtk gtk3 libxkbcommon
|
|
|
|
name=jre
|
|
version=9.0.1
|
|
release=1
|
|
source=(file:///$name-${version}_linux-x64_bin.tar.gz)
|
|
|
|
build(){
|
|
cd $name-$version
|
|
|
|
install -d $PKG/usr/{bin,lib/$name}
|
|
mv bin conf lib $PKG/usr/lib/$name
|
|
|
|
# several symlinks
|
|
ln -s $name $PKG/usr/lib/java
|
|
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
|
|
ln -s ../lib/java/bin/jcontrol $PKG/usr/bin/jcontrol
|
|
|
|
# remove broken libraries
|
|
rm $PKG/usr/lib/jre/lib/libavplugin-*.so
|
|
|
|
# revdep
|
|
install -d $PKG/etc/revdep.d
|
|
printf '%s\n%s\n' /usr/lib/jre/lib/{,server} > $PKG/etc/revdep.d/jre
|
|
}
|