summaryrefslogtreecommitdiff
path: root/notmuch/Pkgfile
blob: 507615290f84f623942ee71cb815873e5d60523a (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
# Description:	a fast, global-search and tag-based email system
# URL:		https://notmuchmail.org/
# Maintainer:	Shokara Kou, kou at 13f0 dot net
# Packager:	Tim Biermann, tbier at posteo dot de
# Depends on:	gmime3 talloc xapian-core
# Optional:	emacs

name=notmuch
version=0.39
release=1
source=(https://notmuchmail.org/releases/$name-$version.tar.xz
	gpgless_configure.diff)

build() {
	cd $name-$version

	patch -Np1 <$SRC/gpgless_configure.diff
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--includedir=/usr/include \
		--with-emacs \
		--without-bash-completion \
		--without-zsh-completion

	prt-get isinst emacs >/dev/null 2>&1 && IS_EMACS=1 || IS_EMACS=0
	make DESTDIR=$PKG LIBDIR_IN_LDCONFIG=0 WITH_EMACS=$IS_EMACS install
	install -Dm755 notmuch-shared $PKG/usr/bin/notmuch
}