aboutsummaryrefslogtreecommitdiffstats
path: root/community/mutt/APKBUILD
blob: 250e92a8c6e49f9e7805c2b96aadbf7f197d5332 (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
50
51
52
53
54
55
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Andrew Manison <amanison@anselsystems.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mutt
pkgver=1.13.1
pkgrel=0
pkgdesc="Small and very powerful text-mode email client"
url="http://www.mutt.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="cyrus-sasl-dev gdbm-dev gettext-dev gpgme-dev
	libidn-dev ncurses-dev openssl-dev perl"
options="suid !check"
subpackages="$pkgname-doc $pkgname-lang"
source="https://bitbucket.org/mutt/mutt/downloads/mutt-$pkgver.tar.gz"

build() {
	ISPELL=/usr/bin/hunspell \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-imap \
		--enable-pop \
		--enable-smtp \
		--enable-hcache \
		--enable-gpgme \
		--enable-sidebar \
		--with-curses \
		--with-mailpath=/var/mail \
		--with-docdir=/usr/share/doc/$pkgname \
		--without-included-gettext \
		--with-ssl \
		--with-sasl
	make
}

package() {
	make DESTDIR="$pkgdir" install

	rm -f "$pkgdir"/etc/*.dist \
		"$pkgdir"/etc/mime.types

	# Don't tamper with the global configuration file.
	# Many options set in the global config cannot be
	# overwritten in the users configuration file.
	# Example: Resetting colors isn't possible.
	install -Dm644 contrib/gpg.rc \
		"$pkgdir"/etc/Muttrc.gpg.dist
}

sha512sums="d65026caa0095d0ffc89bf169eec6bdbce539252653c81ed7c5aed1d00363d468ec052126ee702102f7225cd61dc4b9f8d7d677bd25a32b207adc30b49e9a0e8  mutt-1.13.1.tar.gz"