### this file is sourced not run

pkgname=multitail
PKGVER=6.4.2
PKGBUILD=1
PKGARCH=x86_64
TARBALL=$pkgname-$PKGVER.tgz
MD5SUM=a0959f7b2385061080712afd8ae6e33d
SRC_URL=http://www.vanheusden.com/$pkgname/$TARBALL
BUNDLE=

SLACKREQ='libncurses'
SLACKDESC="$pkgname: $pkgname $PKGVER (ncurses log viewer)  
$pkgname: MultiTail allows you to monitor logfiles and command output in
$pkgname: multiple windows in a terminal, colorize, filter and merge.
$pkgname: This package version is compiled with wide-character support.
$pkgname: 
$pkgname: 
$pkgname: 
$pkgname: 
$pkgname: 
$pkgname: License GPL v2
$pkgname: http://www.vanheusden.com/multitail/index.php
"
SLACKINSTALL='
if [ -e /etc/multitail.conf ]; then
  echo "Please compare /etc/multitail.conf.new with /etc/multitail.conf"
else
  mv -v /etc/multitail.conf.new /etc/multitail.conf
fi
'
### default pkg_download
### default pkgـprepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/multitail*

  # Patch for wide character support.
  # Fatdog64's ncurses is compiled with wide character support, but
  # it doesn't duplicate the C header files for the non-wide and wide
  # libraries. Here we patch multitail to help it find the wide-
  # character C header files that it looks for when UTF8 support is
  # enabled.
  # 
  sed -i 's:\(#include.*\)ncursesw/:\1:' mt.h &&
  make install && pkg_build_slackdesc
}

# vim: ft=sh:
