#Maintainer: Thorsten Muehlfelder pkgname=spectrum pkgver=20100514 pkgrel=1tm source=("http://cloud.github.com/downloads/hanzz/spectrum/spectrum-$pkgver.src.tar.gz" "rc.spectrum" "spectrum.logrotate" "README.Slackware" "config-helper.sh") url="http://spectrum.im/" docs=('AUTHORS' 'COPYING' 'ChangeLog' 'NEWS' 'README' 'README.Slackware' 'TODO') options=('noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (XMPP transport)" "Spectrum is an XMPP transport/gateway. It allows XMPP users to" "communicate with their friends who are using one of the supported" "networks. Spectrum is written in C++ and uses the Gloox XMPP library" "and libpurple for legacy networks. Spectrum is open source and" "released under the GNU GPL." "" "Make sure you read the documentation about how to set this up," "especially the info about creating $pkgname user and groups in" "/usr/doc/$pkgname-$pkgver/README.Slackware" ) build() { cd $startdir/src/${pkgname} #cd $startdir/src/hanzz-spectrum-744fe5e cmake -DCMAKE_INSTALL_PREFIX=/usr . make -j3 || return 1 make DESTDIR=$startdir/pkg/ install || return 1 ( cd spectrumctl python setup.py install --root=$startdir/pkg/ cd .. ) # create config directory mkdir -p -m 755 $startdir/pkg/etc/spectrum/ #rm -rf $startdir/pkg/etc/spectrum/* # copy an example config file to doc dir install -Dm 644 spectrum.cfg $startdir/pkg/usr/doc/$pkgname-$pkgver/spectrum.cfg-example || return 1 cd $startdir/src/ # rc.script install -Dm 755 rc.spectrum $startdir/pkg/etc/rc.d/rc.spectrum || return 1 # logrotate script install -Dm 644 spectrum.logrotate $startdir/pkg/etc/logrotate.d/spectrum || return 1 # config helper install -D config-helper.sh $startdir/pkg/usr/doc/$pkgname-$pkgver/config-helper.sh || return 1 }