aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mu/APKBUILD
blob: 60569b9af3ef6e94cf7ed077035fbe3950f77302 (plain)
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
46
47
48
49
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: stef <l0ls0fo2i@ctrlc.hu>
# Maintainer:
pkgname=mu
pkgver=1.2
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/$pkgver.tar.gz
	"

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="eadebbaf2d6b6c604c9cebc72621fe64bd4fa7b793d02b0a029a3e970c076430e2067a05ab215652f9fc52e77e4e80401476ca5b39b294eb0b14d9082118d99a  mu-1.2.tar.gz"