# Contributor: Sören Tempel # Contributor: stef # Maintainer: pkgname=mu pkgver=1.0 pkgrel=0 pkgdesc="A collection of utilities for indexing and searching Maildirs" arch="x86 x86_64 ppc64le" url="http://www.djcbsoftware.nl/code/mu" license="GPL-3.0" depends="sqlite" makedepends="xapian-core-dev gmime-dev sqlite-dev autoconf automake libtool" install="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/djcb/mu/archive/v$pkgver.tar.gz 0001-Support-gmime-3.0.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" # msg2pdf and mug will be built only if webkitgtk is installed autoreconf --force --install ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } package() { cd "$builddir" make DESTDIR=$pkgdir install # if msg2pdf and mug were built, install them # if not, remove the unneeded mug manpage if [ -f toys/msg2pdf/msg2pdf ]; then install -m755 toys/msg2pdf/msg2pdf $pkgdir/usr/bin/msg2pdf fi if [ -f toys/mug/mug ]; then install -m755 toys/mug/mug $pkgdir/usr/bin/mug install -Dm644 toys/mug/mug.svg $pkgdir/usr/share/pixmaps/mug.svg else rm $pkgdir/usr/share/man/man1/mug.1 fi } sha512sums="49b0b86f22e9a6ace1fc3fd6e7a8a523aa9edf092b953d59f59a1ef7311c8c546a261a1a186e3285cea788be20c816c70ac08d1514f700ff97258a2012ad394d mu-1.0.tar.gz d28ec47ebc21858205883690cd52e5ce92ced8f7001990b32d87aa2bd1975a51526c1c711c87dd55e3489ff7c82d5cfc5421f363c33116ab09129c473c28c7c0 0001-Support-gmime-3.0.patch"