2006-02-23 15:26:10 +00:00
|
|
|
|
# Description: Java plugin for Mozilla Firefox
|
|
|
|
|
# URL: http://java.sun.com
|
2007-04-03 15:01:36 +02:00
|
|
|
|
# Maintainer: Simon Glo<6C>ner, viper at hometux dot de
|
|
|
|
|
# Packager: Jay Dolan, jdolan at jdolan dot dyndns dot org
|
|
|
|
|
# Depends on: jre, firefox
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
name=firefox-java-plugin
|
2007-07-11 16:23:18 +02:00
|
|
|
|
version=1.6.0_02
|
2007-04-03 15:01:36 +02:00
|
|
|
|
release=1
|
2006-02-23 15:26:10 +00:00
|
|
|
|
source=()
|
|
|
|
|
|
|
|
|
|
build(){
|
2007-04-03 15:01:36 +02:00
|
|
|
|
plugins=(
|
|
|
|
|
/usr/lib/java/plugin/i386/ns7/libjavaplugin_oji.so
|
|
|
|
|
/usr/lib/java/jre/plugin/i386/ns7/libjavaplugin_oji.so
|
|
|
|
|
)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
2007-04-03 15:01:36 +02:00
|
|
|
|
for p in ${plugins[@]}; do
|
|
|
|
|
test -f $p && break
|
|
|
|
|
done
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
2007-04-03 15:01:36 +02:00
|
|
|
|
if [ ! -f $p ]; then
|
|
|
|
|
echo "Java Runtime Environment not found!"
|
|
|
|
|
return
|
|
|
|
|
fi
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
2007-04-03 15:01:36 +02:00
|
|
|
|
mkdir -p $PKG/usr/lib/firefox/plugins
|
|
|
|
|
ln -s $p $PKG/usr/lib/firefox/plugins
|
2006-02-23 15:26:10 +00:00
|
|
|
|
}
|