# Compiling Time: ~0.22 SBU # Maintainer: voroskoi USE_DEVEL=${USE_DEVEL:-"n"} pkgname=bitlbee pkgver=3.5.1 Fuse $USE_DEVEL && pkgver=3.0.2.772 pkgrel=2 pkgdesc="An IRC to other chat networks gateway." url="http://www.bitlbee.org/main.php/news.html" depends=() rodepends=("bitlbee-common=$pkgver-$pkgrel") makedepends=('docbook-xsl>=1.73.0-2' 'docbook-xml' 'xmlto' 'asciidoc') backup=(etc/biltbee/{bitlbee.conf,motd.txt}) groups=('network-extra') archs=('x86_64') up2date="lynx -dump http://www.bitlbee.org/ |grep Stable |sed 's/.*: \(.*\)/\1/'" source=(http://get.bitlbee.org/src/$pkgname-$pkgver.tar.gz) sha1sums=('de0767facdb7729253ae4d6ef6e3637ebd54939a') # nodocs, because docs go to the common package options=('scriptlet' 'nodocs') subpkgs=('bitlbee-otr' 'bitlbee-skype' 'bitlbee-common' 'bitlbee-libpurple') subdescs=('OTR support for BitlBee.' 'Skype support for BitlBee.' 'Common files required by bitlbee/bitlbee-libpurple.' 'An IRC to other chat networks gateway (libpurple version).') subdepends=("libotr>=4.0.0" "" "glib2 gnutls>=3.4.2 systemd" "libpurple>=2.10.9") subrodepends=("$pkgname=$pkgver" "$pkgname=$pkgver" "" "bitlbee-common=$pkgver-$pkgrel") subgroups=('network-extra' 'network-extra' 'network-extra' 'network-extra') subarchs=('x86_64' 'x86_64' 'x86_64' 'x86_64') _F_systemd_scriptlet="$pkgname-common.install" _F_systemd_units=(bitlbee=e) Finclude systemd if Fuse $USE_DEVEL; then unset source sha1sums _F_scm_type="bzr" _F_scm_url="http://code.bitlbee.org/bitlbee/" Finclude scm fi build() { CFLAGS+=" -fno-strict-aliasing" Fuse $USE_DEVEL && Funpack_scm Fpatchall # First build the libpurple version Fmake --etcdir=/etc/bitlbee --purple=1 Fexec make DESTDIR=$Fdestdir install-bin || Fdie Fmv usr/sbin/$pkgname usr/sbin/$pkgname-libpurple Fsplit bitlbee-libpurple /usr/sbin Fexec make clean # And now the normal one Fmake --etcdir=/etc/bitlbee --otr=plugin --skype=plugin Fmkdir /var/lib/bitlbee make DESTDIR=$Fdestdir install-etc install-dev || Fdie Fmakeinstall chown 503:503 $Fdestdir/var/lib/bitlbee || return 1 Fdocrel doc/{AUTHORS,CHANGES,FAQ,README} Ffilerel doc/user-guide/* /usr/share/doc/$pkgname-$pkgver/user-guide/ Fsplit bitlbee-otr usr/lib/bitlbee/otr.so Fsplit bitlbee-skype etc/skyped usr/lib/bitlbee/skype.so usr/bin/skyped usr/share/man/man1/skyped* Fgenscriptlet Fsplit bitlbee-common etc usr/bin usr/include usr/lib usr/share var } # optimization OK