# vim: set syn=sh et ai sw=2 st=2 ts=2 tw=0:
#Packager: JRD <jrd@enialis.net>

pkgname=kdocker
pkgver=4.6
pkgrel=1cp
#arch=i486
source=(http://launchpad.net/$pkgname/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz)
sourcetemplate=http://enialis.net/~jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=https://launchpad.net/kdocker
options=(noautodotnew)

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (Minimize to system tray helper)"
"KDocker will help you dock any application into the system tray."
"This means you can dock openoffice, xmms, firefox, thunderbird,"
"anything! Just point and click."
"Works for all NET WM compliant window managers - that includes KDE,"
"GNOME, Xfce, Fluxbox and many more."
)


build() {
  cd $startdir/src/$pkgname-$pkgver
  sed -i -e 's:/usr/local/:/usr/:' kdocker.pro
  export QTDIR=/usr/lib/qt
  export PATH=$QTDIR/bin:$PATH
  qmake || return 1
  sed -i -e 's:-O2:\0 -fPIC:' Makefile
  make -j $numjobs || return 1
  make install INSTALL_ROOT=$startdir/pkg || return 1
  mkdir -p $startdir/pkg/usr/share/icons/hicolor/128x128/apps/
  cp $startdir/pkg/usr/share/kdocker/icons/kdocker.png $startdir/pkg/usr/share/icons/hicolor/128x128/apps/
}