# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Sergej Pupykin # Contributor: Sergej Pupykin pkgname=pyicqt pkgver=0.8.1.3 pkgrel=1 pkgdesc="jabber icq transport" arch=('i686' 'x86_64') url="http://code.google.com/p/pyicqt/" license=('GPL') backup=(etc/ejabberd/pyicq.xml) depends=('python' 'twisted') replaces=(pyicq) provides=(pyicq) conflicts=(pyicq) source=(http://pyicqt.googlecode.com/files/pyicqt-$pkgver.tar.gz \ pyicq.rc \ config.xml \ ficq.patch \ unicode-error-fix.diff) md5sums=('0a94e1aaa3079b68a3f180705f961836' '1b0d0b33e101b2d79fe484ab6c486846' '150501a11601763ce4ef12eb5649ef2a' '876a7b24f0ec17992f97dcf5d02a0d3a' 'd480c2f59e7b42874aa4ecda04c1c0c0') build() { cd $startdir/src # patch $pkgname-$pkgver/src/tlib/oscar.py <$srcdir/ficq.patch # patch $pkgname-$pkgver/src/legacy/icqt.py <$srcdir/unicode-error-fix.diff install -d -m0755 $startdir/pkg/usr/lib && \ cp -r $pkgname-$pkgver $startdir/pkg/usr/lib && \ mv $startdir/pkg/usr/lib/$pkgname-$pkgver $startdir/pkg/usr/lib/$pkgname && \ install -d -m0755 $startdir/pkg/var/spool/pyicqt && \ install -D -m0644 ./config.xml $startdir/pkg/etc/ejabberd/pyicq.xml && \ mv $startdir/pkg/usr/lib/$pkgname/config_example.xml $startdir/pkg/etc/ejabberd/pyicq_example.xml && \ ln -s ../../../etc/ejabberd/pyicq.xml $startdir/pkg/usr/lib/$pkgname/config.xml && \ install -D -m0755 pyicq.rc $startdir/pkg/etc/rc.d/pyicqt }