You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.4 KiB
53 lines
1.4 KiB
18 years ago
|
# --- T2-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# T2 SDE: package/.../acroread/acroread.conf
|
||
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
||
|
#
|
||
|
# More information can be found in the files COPYING and README.
|
||
|
#
|
||
|
# This program is free software; you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU General Public License as published by
|
||
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
||
|
# GNU General Public License can be found in the file COPYING.
|
||
|
# --- T2-COPYRIGHT-NOTE-END ---
|
||
|
prefix='opt/acroread-7.0'
|
||
|
set_confopt
|
||
|
|
||
|
acroread_patch () {
|
||
|
sed -e "s,/opt/acroread,$root/$prefix,g" $confdir/setup.diff | patch -p0
|
||
|
}
|
||
|
|
||
|
acroread_setup () {
|
||
|
./INSTALL
|
||
|
|
||
|
pkginstalled mozilla && {
|
||
|
pkgprefix -t mozilla
|
||
|
cp -av $root/$prefix/Browser/intellinux/nppdf.so $MOZILLA_FIVE_HOME/plugins
|
||
|
}
|
||
|
|
||
|
pkginstalled firefox && {
|
||
|
pkgprefix -t firefox
|
||
|
pdir=`pkgprefix libdir firefox`
|
||
|
pdir=`ls -d $pdir/firefox-*/plugins`
|
||
|
for pd in $pdir ; do
|
||
|
cp -av $root/$prefix/Browser/intellinux/nppdf.so $pd
|
||
|
done
|
||
|
}
|
||
|
}
|
||
|
|
||
|
acroread_cleanup () {
|
||
|
# Remove installation files ... build_this_package does treat them
|
||
|
# as default documentation ...
|
||
|
rm -fv $root/$docdir/COMMON.TAR
|
||
|
rm -fv $root/$docdir/ILINXR.TAR
|
||
|
}
|
||
|
|
||
|
makeopt=''
|
||
|
makeinstopt=''
|
||
|
createdocs=0
|
||
|
|
||
|
hook_add prepatch 5 acroread_patch
|
||
|
hook_add postmake 5 acroread_setup
|
||
|
hook_add postdoc 5 acroread_cleanup
|