milis/talimatname/genel/j/jre/talimat

33 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: Java Runtime Environment
2018-06-09 19:57:07 +02:00
# URL: http://www.oracle.com/technetwork/java/javase/overview/index.html
# Paketçi: milisarge
2018-06-09 00:06:58 +02:00
# Gerekler:
2018-06-09 19:57:07 +02:00
# Grup: geliştirme
2018-06-09 00:06:58 +02:00
isim=jre
2018-06-09 19:57:07 +02:00
surum=1.8.0_172
2018-06-09 00:06:58 +02:00
devir=1
2018-06-09 19:57:07 +02:00
kaynak=(https://javaone.ir/sites/default/files/java/8/8u172/jre/jre-8u172-linux-x64.tar.gz)
2018-06-09 00:06:58 +02:00
derle(){
cd $isim$surum
install -d $PKG/usr/{bin,share,lib/$isim}
mv bin lib plugin $PKG/usr/lib/$isim
install -d "$PKG"/usr/lib/mozilla/plugins
# several symlinks
ln -s $isim $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
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
# remove broken libraries
rm $PKG/usr/lib/jre/lib/amd64/libavplugin-*.so
}