milis/talimatname/genel/j/jre/talimat

32 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Java Runtime Environment
2017-06-12 23:45:13 +02:00
# URL: http://www.oracle.com/technetwork/java/javase/overview/index.html
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2017-06-12 23:45:13 +02:00
2017-10-28 14:10:23 +02:00
isim=jre
surum=1.8.0_152
2017-10-28 14:10:23 +02:00
devir=1
kaynak=(http://ftp.osuosl.org/pub/funtoo/distfiles/oracle-java/jre-8u152-linux-x64.tar.gz)
2017-06-12 23:45:13 +02:00
2017-10-27 23:59:41 +02:00
derle(){
2017-10-28 14:10:23 +02:00
cd $isim$surum
2017-06-12 23:45:13 +02:00
2017-10-28 14:10:23 +02:00
install -d $PKG/usr/{bin,share,lib/$isim}
mv bin lib plugin $PKG/usr/lib/$isim
2017-06-13 01:05:36 +02:00
install -d "$PKG"/usr/lib/mozilla/plugins
2017-06-12 23:45:13 +02:00
# several symlinks
2017-10-28 14:10:23 +02:00
ln -s $isim $PKG/usr/lib/java
2017-06-13 02:00:43 +02:00
ln -s ../lib/java/bin/java $PKG/usr/bin/java
2017-06-12 23:45:13 +02:00
ln -s ../lib/java/bin/javaws $PKG/usr/bin/javaws
2017-06-13 02:00:43 +02:00
ln -s ../lib/java/bin/keytool $PKG/usr/bin/keytool
2017-06-12 23:45:13 +02:00
ln -s ../lib/java/bin/jcontrol $PKG/usr/bin/jcontrol
2017-06-13 02:00:43 +02:00
sed -e "s|Exec=|Exec=/usr/lib/java/bin/|" \
-e "s|.png|-jre8.png|" \
-i $PKG/usr/lib/jre/lib/desktop/applications/*
mv $PKG/usr/lib/jre/lib/desktop/applications "$PKG"/usr/share/
#install -m644 "$SRC"/*.desktop "$PKG"/usr/share/applications/
ln -s /usr/lib/java/lib/amd64/libnpjp2.so "$PKG"/usr/lib/mozilla/plugins/libnpjp2-jre8.so
2017-06-12 23:45:13 +02:00
# remove broken libraries
rm $PKG/usr/lib/jre/lib/amd64/libavplugin-*.so
}