OpenSDE Packages Database (without history before r20070)
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.

52 lines
1.4 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../acroread/acroread.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- T2-COPYRIGHT-NOTE-END ---
  14. prefix='opt/acroread-7.0'
  15. set_confopt
  16. acroread_patch () {
  17. sed -e "s,/opt/acroread,$root/$prefix,g" $confdir/setup.diff | patch -p0
  18. }
  19. acroread_setup () {
  20. ./INSTALL
  21. pkginstalled mozilla && {
  22. pkgprefix -t mozilla
  23. cp -av $root/$prefix/Browser/intellinux/nppdf.so $MOZILLA_FIVE_HOME/plugins
  24. }
  25. pkginstalled firefox && {
  26. pkgprefix -t firefox
  27. pdir=`pkgprefix libdir firefox`
  28. pdir=`ls -d $pdir/firefox-*/plugins`
  29. for pd in $pdir ; do
  30. cp -av $root/$prefix/Browser/intellinux/nppdf.so $pd
  31. done
  32. }
  33. }
  34. acroread_cleanup () {
  35. # Remove installation files ... build_this_package does treat them
  36. # as default documentation ...
  37. rm -fv $root/$docdir/COMMON.TAR
  38. rm -fv $root/$docdir/ILINXR.TAR
  39. }
  40. makeopt=''
  41. makeinstopt=''
  42. createdocs=0
  43. hook_add prepatch 5 acroread_patch
  44. hook_add postmake 5 acroread_setup
  45. hook_add postdoc 5 acroread_cleanup