# $Id: PKGBUILD 66279 2012-02-23 08:39:51Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Georg Grabler <ggrabler@gmail.com>

pkgname=perlpanel
pkgver=20080729
pkgrel=3
pkgdesc="PerlPanel is the ideal accompaniment to a light-weight Window Manager such as OpenBox, or a desktop-drawing program like iDesk."
arch=('any')
url="http://savannah.nongnu.org/projects/perlpanel"
license=('GPL')
install=perlpanel.install
depends=('perl' 'perl-xmms' 'perlxml' 'perl-xml-simple' 'gtk2-perl' 'glade-perl'
	 'perl-gnome2-wnck' 'perl-locale-gettext' 'perl-date-manip')
source=(http://archlinux-stuff.googlecode.com/files/PerlPanel-$pkgver.tar.gz
	arch.patch)
md5sums=('8c7b76c4a5447ba4deef34b29bf883b7'
         'c224817ecd0fa7372b3326a3f8196c3e')

build() {
  cd $srcdir/PerlPanel
  chmod -R u+w *
  sed -i 's|PREFIX=/usr/local|PREFIX=/usr|' Makefile

  patch -p1 <../arch.patch

  make
  make DESTDIR=$pkgdir install

  /usr/bin/find $pkgdir -name '.packlist' -exec rm '{}' \;
  /usr/bin/find $pkgdir -name 'perllocal.pod' -exec rm '{}' \;
  /usr/bin/find $pkgdir -depth -type d -empty -exec rmdir '{}' \;
  /usr/bin/find $pkgdir -depth -type d -name CVS -exec rm -rf {} \;
}
