compiler/cli/autopackage/default.apspec
changeset 16 17a2d1d9f205
equal deleted inserted replaced
15:10a95d798b36 16:17a2d1d9f205
       
     1 # -*- shell-script -*-
       
     2 [Meta]
       
     3 ShortName: teak
       
     4 SoftwareVersion: 6.2.5.0
       
     5 DisplayName: Tea Language Compiler
       
     6 RootName: @exept.de/expecco:$SOFTWAREVERSION
       
     7 Summary: Tea Language Compiler
       
     8 Maintainer: Jan Vrany
       
     9 Packager: Jan Vrany
       
    10 PackageVersion: 1
       
    11 CPUArchitectures: x86
       
    12 AutopackageTarget: 1.0
       
    13 Type: Application
       
    14 License: Commercial
       
    15 
       
    16 [Description]
       
    17 Tea Language Compiler
       
    18 
       
    19 [BuildPrepare]
       
    20 # If you're using autotools, the default should be enough.
       
    21 # prepareBuild will set up apbuild and run configure for you. If you
       
    22 # need to pass arguments to configure, just add them to prepareBuild:
       
    23 # prepareBuild --enable-foo --disable-bar
       
    24 #prepareBuild
       
    25 
       
    26 [BuildUnprepare]
       
    27 # If you're using prepareBuild above, there is no need to change this!
       
    28 #unprepareBuild
       
    29 
       
    30 [Globals]
       
    31 # Variables declared in this section will be available in all other sections
       
    32 export APKG_BUILD_SKIP_CONFIGURE=1
       
    33 export APKG_BUILD_SKIP_MAKE=1
       
    34 export MYPREFIX=/opt/teak
       
    35 
       
    36 [Prepare]
       
    37 #recommend '@autopackage.org/autopackage-gtk' 1
       
    38 
       
    39 [Imports]
       
    40 import <<EOF
       
    41 $source_dir/teak
       
    42 $source_dir/resources
       
    43 $source_dir/keyboard.rc
       
    44 $source_dir/keyboardMacros.rc
       
    45 $source_dir/display.rc
       
    46 $source_dir/host.rc
       
    47 $source_dir/../doc
       
    48 $source_dir/../testsuites/webedition
       
    49 $source_dir/../projects/libraries
       
    50 $source_dir/../reportGenerator/tools
       
    51 $source_dir/../../pdf/afm
       
    52 $source_dir/../plugin/selenium/libexept_expecco_plugin_selenium.so
       
    53 $source_dir/../externalTools
       
    54 EOF
       
    55 
       
    56 for i in $source_dir/*.so
       
    57 do
       
    58     echo $source_dir/$(readlink $i)
       
    59 done | import
       
    60 
       
    61 [Install]
       
    62 if [ "$PREFIX" != "/usr" ]
       
    63 then
       
    64     export MYPREFIX=$PREFIX
       
    65 fi
       
    66 
       
    67 find . -type d \( -name CVS -or -name 'not_*' \) -print | xargs rm -rf
       
    68 mkdir -p $MYPREFIX
       
    69 copyFiles expecco *.rc resources        $MYPREFIX/bin
       
    70 copyFiles *.so                          $MYPREFIX/lib
       
    71 copyFiles doc externalTools             $MYPREFIX/packages/exept/expecco
       
    72 copyFiles webedition/projects libraries $MYPREFIX/testsuites
       
    73 copyFiles tools                         $MYPREFIX/packages/exept/expecco/reportGenerator
       
    74 copyFiles afm                           $MYPREFIX/packages/exept/pdf
       
    75 copyFiles libexept_expecco_plugin_selenium.so   $MYPREFIX/plugin
       
    76 
       
    77 #installExe expecco
       
    78 #installLib *.so
       
    79 #installData resources
       
    80 #installData keyboard.rc
       
    81 #installData keyboardMacros.rc
       
    82 #installData host.rc
       
    83 #installData display.rc
       
    84 #installData doc
       
    85 
       
    86 [Uninstall]
       
    87 # Leaving this at the default is safe unless you use custom commands in
       
    88 # "Install" to create files. All autopackage API functions
       
    89 # that installs files are logged.
       
    90 uninstallFromLog