aboutsummaryrefslogtreecommitdiffstats
path: root/community/mu/APKBUILD
blob: 067fcff52875078a81de429eb7988eaee0281dff (plain) (blame)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: stef <l0ls0fo2i@ctrlc.hu>
# Contributor: Eivind Uggedal <eu@eju.no>
# Contributor: Nico Schottelius <nico.schottelius@ungleich.ch>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=mu
pkgver=1.6.6
pkgrel=0
pkgdesc="A collection of utilities for indexing and searching Maildirs"
# armv7 and x86 blocked by gmime
# s390x, mips64 and riscv64 blocked by emacs
arch="all !armv7 !x86 !s390x !mips64 !riscv64"
url="http://www.djcbsoftware.nl/code/mu"
license="GPL-3.0"
depends="sqlite"
makedepends="
	autoconf
	automake
	emacs
	gettext-dev
	gmime-dev
	libtool
	texinfo
	sqlite-dev
	xapian-core-dev
	"
subpackages="$pkgname-doc mu4e"
source="$pkgname-$pkgver.tar.gz::https://github.com/djcb/mu/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf --force --install
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-webkit \
		--disable-gtk  \
		--enable-mu4e
	make
}

package() {
	make DESTDIR=$pkgdir install

	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
	fi
}

mu4e() {
	pkgdesc="Emacs-based e-mail client which uses mu as its back-end"
	depends="$pkgname=$pkgver-r$pkgrel cmd:emacs"

	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/share "$subpkgdir"/usr
}

sha512sums="
5941ebffee516cef98a6aeeaf666273badd79c1d22e11629dcf94e7b04d7e172045fd70c6ca8f3a326fc15b89331b32576d79daa58af69fad9df3215efb6163b  mu-1.6.6.tar.gz
"