# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Sergej Pupykin # Contributor: gh0stwizard # Contributor: slubman pkgname=tkabber pkgver=0.11.1 pkgrel=1 pkgdesc="Tkabber is an open source Jabber client, written in Tcl/Tk." arch=(i686 x86_64) url="http://tkabber.jabber.ru/" license=("GPL") depends=('tcl' 'tk' 'bwidget' 'tcllib') install= source=(http://files.jabber.ru/tkabber/tkabber-$pkgver.tar.gz \ http://files.jabber.ru/tkabber/tkabber-plugins-$pkgver.tar.gz tkabber) md5sums=('718db4876e7efbf44867c845cf2a35a0' '1da01fafcb80083df799c92c83243b62' '568b7eb3199ea05bbf1cb09948d81ea7') build() { mkdir -p $startdir/pkg/usr/share mkdir -p $startdir/pkg/usr/bin mv $startdir/src/$pkgname-$pkgver $startdir/pkg/usr/share && \ mv $startdir/src/$pkgname-plugins-$pkgver/* $startdir/pkg/usr/share/$pkgname-$pkgver/plugins && \ cd $startdir/pkg/ || return 1 msg "Repair permissions..." chmod 755 $startdir/pkg/usr/share/$pkgname-$pkgver/tkabber.tcl && \ # chmod 755 $startdir/pkg/usr/share/$pkgname-$pkgver/examples/tkabber_setstatus && \ chmod 755 $startdir/pkg/usr/share/$pkgname-$pkgver/examples/tclCarbonNotification-1.0.0/build.sh && \ # chmod 755 $startdir/pkg/usr/share/$pkgname-$pkgver/jabberlib-tclxml/tclxml/sgml-8.1.tcl && \ # chmod 755 $startdir/pkg/usr/share/$pkgname-$pkgver/jabberlib-tclxml/tclxml/sgmlparser.tcl && \ # chmod 755 $startdir/pkg/usr/share/$pkgname-$pkgver/jabberlib-tclxml/tclxml/tclparser-8.1.tcl && \ # chmod 755 $startdir/pkg/usr/share/$pkgname-$pkgver/jabberlib-tclxml/tclxml/xml-8.1.tcl && \ chmod 755 $startdir/pkg/usr/share/$pkgname-$pkgver/plugins/whiteboard/svgrender.tcl || return 1 msg "Installing tkabber script..." cat $startdir/src/tkabber | sed -e "s/_TKABBERVER_/$pkgver/g" >> $startdir/pkg/usr/bin/tkabber && \ chmod +x $startdir/pkg/usr/bin/tkabber }