Package: lbdb
Version: 0.38
Revision: 2
Description: The Little Brother's Database
License: GPL
Source: http://www.spinnaker.de/debian/%n_%v.tar.gz
Source-Checksum: SHA256(59bdddbbe18c54490d8a50cbfe951a1d174edbea87e082bfcc9811989dd6e988)
PatchFile: %n.patch
PatchFile-MD5: 1a78ec430da185bb330393b52aa82622
SourceDirectory: %n-%v
DocFiles: COPYING NEWS README TODO
ConfFiles: %p/etc/lbdb.rc %p/etc/lbdb_ldap.rc
Suggests: abook, evolution, gnupg-unified

ConfigureParams: --libdir=%p/lib/lbdb --mandir=%p/share/man --sysconfdir=%p/etc PATH=/bin:/usr/bin:$PATH --with-abook=%p/bin/abook --with-gpg=%p/bin/gpg --with-evolution-addressbook-export=%p/bin/evolution-addressbook-export

CompileScript: <<
#!/bin/sh -ev
# Remove any non-Apple dependencies configure may have found

cfgoverride () {
  sed -e "/s,@$1@,/c\\
s,@$1@,|#_!!_#|$2,g" -i.bak config.status
}

./configure CFLAGS=-I%p/include %c

cfgoverride AWK /usr/bin/awk
cfgoverride TACTARGET tac
cfgoverride TAC '${exec_prefix}/lib/tac'
cfgoverride DOTLOCK_TARGET lbdb_dotlock
cfgoverride DOTLOCK '${exec_prefix}/bin/lbdb_dotlock'
cfgoverride DOTLOCKBASE lbdb_dotlock

./config.status
make
<<
InstallScript: make install_prefix=%d install

DescDetail: <<
 This package was inspired by the Big Brother Database package available for
 various Emacs mailers. It provides a command-line interface to various
 address books, and is designed to work with mutt's external query feature.
<<
DescUsage: <<
 lbdb depends on a number of external tools for some of the more obscure
 plugins. You'll have to install them separately if you want to use them.
<<
Homepage: http://www.spinnaker.de/lbdb/
Maintainer: None <fink-devel@lists.sourceforge.net>