# Maintainer: Luis Henrique <lmello.009@gmail.com>
# Former Maintainer(s): Former Maintainer <email@address.com>

# Mandatory
pkgname=bluefish
pkgver=2.0.2
pkgrel=1lm
source=("http://downloads.sourceforge.net/project/bluefish/bluefish/2.0.2/bluefish-2.0.2.tar.gz")
# Optional
docs=("AUTHORS" "COPYING" "ChangeLog" "INSTALL" "NEWS" "README" "TODO")
url="http://bluefish.openoffice.nl/index.html"
 
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"bluefish (GTK-based HTML Editor)"
"Bluefish is a powerful editor for experienced web designers"
"and programmers. Bluefish supports many programming and markup"
"languages, but it focuses on editing dynamic and interactive"
"websites."
)

build() {
        cd $startdir/src/$pkgname-$pkgver
        ./configure \
          --prefix=/usr \
          --libdir=/usr/lib${LIBDIRSUFFIX} \
          --sysconfdir=/etc \
          --localstatedir=/var \
          --mandir=/usr/man \
          --docdir=/usr/doc/$pkgname-$pkgver \
          --enable-static=no \
          --enable-shared=yes \
          --disable-update-databases \
          --disable-xml-catalog-update \
          --build=$arch-slackware-linux
        make || return 1
        make DESTDIR=$startdir/pkg install
}

doinst() {
         #update the mime desktop database
         if [ -x usr/bin/update-desktop-database ]; then
           usr/bin/update-desktop-database -q
         fi
         # update the mime database
         if [ -x usr/bin/update-mime-database ]; then
           usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1
         fi
}