# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=mcabber pkgver=1.0.4 pkgrel=0 pkgdesc="A small Jabber console client" url="https://mcabber.com" arch="all" license="GPL2+" depends="beep" options="libtool" makedepends="loudmouth-dev glib-dev ncurses-dev gpgme-dev aspell-dev libotr3-dev libidn-dev enchant-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://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 mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples install -m644 mcabberrc.example \ "$pkgdir"/usr/share/doc/$pkgname/examples/mcabberrc.example \ || return 1 } md5sums="81ffa7866458b4853f4f155f09f05fb3 mcabber-1.0.4.tar.bz2" sha256sums="63b6bc003fcceba4dc4b273ed1c71643c4f8d95e8696543d53f64a7672b1ce0a mcabber-1.0.4.tar.bz2" sha512sums="f4f85abcdfa341489e47ba5290e9cce79cdd749753155003e3a9b5edd145e158c91d0a32fe07983196be5729134279f21fbe94511a41b98b793b415157b6b15b mcabber-1.0.4.tar.bz2"