public
Created

mu package for xapian-1.3

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
# Maintainer: megadriver <megadriver at gmx dot com>
# Contributor: Tom Willemsen <tom at ryuslash dot org>
# Contributor: Uwe <moc liamg skcuneelu <-- look what I did there>
# Contributor: Nicolas Pouillard <nicolas dot pouillard at gmail dot com>
 
pkgname=mu
pkgver=0.9.9.5
pkgrel=4
pkgdesc="A collection of utilities for indexing and searching Maildirs"
arch=('i686' 'x86_64')
url="http://www.djcbsoftware.nl/code/mu"
install=$pkgname.install
license=('GPL3')
depends=('xapian-core' 'gmime' 'sqlite3')
optdepends=('cronie: Updating index regularly')
source=("http://mu0.googlecode.com/files/mu-$pkgver.tar.gz")
md5sums=('9198564846d29e8a549e7720a5386a8b')
 
prepare() {
cd $srcdir/mu-$pkgver
sed -i 's|MUGDIR|"/usr/share/pixmaps"|' toys/mug/mug.c
sed -i 's|xapian-config|&-1.3|g' configure
}
 
build() {
cd $srcdir/mu-$pkgver
./configure --prefix=/usr
# note: if webkitgtk3 is installed, msg2pdf and mug will be built
make
}
 
package() {
cd $srcdir/mu-$pkgver
make DESTDIR=$pkgdir install
# if msg2pdf and mug were built, install them
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
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.