# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=mcabber pkgver=1.0.3 pkgrel=0 pkgdesc="A small Jabber console client" url="http://www.lilotux.net/~mikael/mcabber/" arch="all" license="GPL2+" depends="beep" depends_dev="$makedepends" options="libtool" makedepends="loudmouth-dev glib-dev ncurses-dev gpgme-dev aspell-dev libotr3-dev libidn-dev enchant-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-example::noarch" source="http://mcabber.com/files/$pkgname-$pkgver.tar.bz2" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --disable-static \ --enable-hgcset \ --enable-enchant \ --enable-aspell \ --enable-otr \ --prefix=/usr \ --mandir=/usr/share/man \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } example() { pkgdesc="$pkgdesc (examples)" # Put the example file into a seperate package mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/example || return 1 mv "$builddir"/mcabberrc.example \ "$subpkgdir"/usr/share/doc/"$pkgname"/example/mcabberrc.example || return 1 } md5sums="c4aa104508238f3965f60c155c8beaac mcabber-1.0.3.tar.bz2" sha256sums="44e6bb0aa0c399261fc212c386a3c2540db133e7593592247ee1621df659139a mcabber-1.0.3.tar.bz2" sha512sums="678129259d27fe57d78289d340d5f6e074a1b7bac0bd0d97a6c41fa05182fa50a150e747e2e45c8d97e6b1f5fb8c14f146b9d13a08bafb3459184f36301cc71a mcabber-1.0.3.tar.bz2"