# -*-shell-script-*-

[Meta]
RootName: @abisource.org/link-grammar:@VERSION@
DisplayName: An english language parser
ShortName: link-grammar
Maintainer: Link-Grammar Team - http://www.abisource.com/projects/link-grammar/
Packager: Robert Staudinger <robsta@stereolyzer.net>
Summary: An english language parser
SoftwareVersion: @VERSION@
AutopackageTarget: 1.0
PackageVersion: 1

# Only uncomment InterfaceVersion if your package exposes interfaces to
# other software, for instance if it includes DSOs or python/perl modules.
# See the developer guide for more info, or ask on autopackage-dev if you
# don't understand interface versioning in autopackage.

# XXX this can't possibly be right, I think its  stale.
# Should be using LINK_VERSION_STRING, yeah ??
# Or maybe just major plus minor ?
InterfaceVersion: 4.1

[Description]
An English language parser, based on the theory of link grammars.

[BuildPrepare]
# create configure wrapper when building out of the source tree
if [ ! -e "configure" ] ; then
        echo '#!/bin/bash' > configure
        echo '../link-grammar/configure $@' >> configure
        chmod +x configure
fi
prepareBuild --prefix=/break/if/binreloc/breaks --enable-binreloc --disable-debug

[BuildUnprepare]
unprepareBuild

[Imports]
echo '*' | import

[Prepare]
# avoid warning
echo "nothing to prepare"

[Install]
#doesn't work installExe ./bin/link-parser
installLib ./lib/*.so.*.*.*
installData ./share/*

[Uninstall]
uninstallFromLog