2006-02-23 15:26:10 +00:00
|
|
|
# Description: Java plugin for Mozilla Firefox
|
|
|
|
# URL: http://java.sun.com
|
2012-11-22 12:50:35 -06:00
|
|
|
# Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
|
|
|
|
# Depends on: jre, firefox
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=firefox-java-plugin
|
2012-05-08 13:03:45 +02:00
|
|
|
version=1.7.0
|
2013-08-06 18:49:57 +02:00
|
|
|
release=2
|
2006-02-23 15:26:10 +00:00
|
|
|
source=()
|
|
|
|
|
|
|
|
build(){
|
2008-07-22 19:49:11 +02:00
|
|
|
plugins=(
|
|
|
|
# jre
|
2012-11-22 12:50:35 -06:00
|
|
|
/usr/lib/java/lib/amd64/libnpjp2.so \
|
2008-07-22 19:49:11 +02:00
|
|
|
# jdk
|
2012-11-22 12:50:35 -06:00
|
|
|
/usr/lib/java/jre/lib/amd64/libnpjp2.so
|
2007-04-03 15:01:36 +02:00
|
|
|
)
|
2008-07-22 19:49:11 +02:00
|
|
|
|
|
|
|
for p in ${plugins[@]}; do
|
|
|
|
test -f $p && break
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ ! -f $p ]; then
|
|
|
|
echo "Java Runtime Environment not found!"
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
2013-08-06 18:49:57 +02:00
|
|
|
mkdir -p $PKG/usr/lib/mozilla/plugins
|
|
|
|
ln -s $p $PKG/usr/lib/mozilla/plugins
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|