1 # Maintainer: Ivy Foster <joyfulgirl@archlinux.us>
5 pkgdesc="The Insidious Big Brother Database (from git)"
6 url="http://savannah.nongnu.org/projects/bbdb/"
10 makedepends=('texinfo')
11 optdepends=('vm: The vm mailer for emacs')
14 install=${pkgname}.install
20 _gitroot="git://git.savannah.nongnu.org/bbdb.git"
25 msg "Connecting to the git server..."
27 if [[ -d $srcdir/$_gitname ]]; then
29 git pull origin master
30 msg "The local files are updated."
32 git clone $_gitroot $_gitname
35 msg "git checkout done"
36 msg "Starting make..."
38 rm -rf $srcdir/$_gitname-build
39 git clone $srcdir/$_gitname $srcdir/$_gitname-build
41 cd $srcdir/$_gitname-build/
44 ./configure --prefix=/usr \
45 --with-lispdir=/usr/share/emacs/site-lisp/bbdb \
46 --with-texmf-dir=/usr/share/texmf/tex/latex
51 cd $srcdir/$_gitname-build/
52 sed -i "s:infodir = :&${pkgdir}/:" doc/Makefile
53 sed -i -e "s:texmf_dir = :&${pkgdir}/:" \
54 -e '/$(INSTALL) -d -m 0755 "$(texmf_dir)/c$(INSTALL) -d -m 0755 "$(texmf_dir)/"; \\' \
56 make DESTDIR=${pkgdir} install install-el
58 # Some extra documentation
59 install -d $pkgdir/usr/share/doc/$pkgname
60 install -m644 -t $pkgdir/usr/share/doc/$pkgname \
62 gzip $pkgdir/usr/share/info/bbdb.info
63 rm -f $pkgdir/usr/share/info/dir