aboutsummaryrefslogtreecommitdiffstats
path: root/main/mutt/APKBUILD
blob: 488548cbc00fbbcd1c3077bd36edd7449be862f6 (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
72
73
74
75
# 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.10.1
pkgrel=0
pkgdesc="Small and very powerful text-mode email client"
url="http://www.mutt.org"
arch="all"
license="GPL"
makedepends="cyrus-sasl-dev gdbm-dev gettext-dev gpgme-dev
	libidn-dev ncurses-dev libressl-dev perl"
options="suid !check"
subpackages="$pkgname-doc $pkgname-lang"
source="https://bitbucket.org/$pkgname/$pkgname/downloads/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

# secfixes:
#   1.10.1-r0:
#   - CVE-2018-14349
#   - CVE-2018-14350
#   - CVE-2018-14351
#   - CVE-2018-14352
#   - CVE-2018-14353
#   - CVE-2018-14354
#   - CVE-2018-14355
#   - CVE-2018-14356
#   - CVE-2018-14357
#   - CVE-2018-14358
#   - CVE-2018-14359
#   - CVE-2018-14362

build() {
	cd "$builddir"
	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/spool/mail \
		--with-docdir=/usr/share/doc/$pkgname \
		--without-included-gettext \
		--with-ssl \
		--with-sasl
	make
}

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

	rm "$pkgdir"/etc/*.dist \
		"$pkgdir"/etc/mime.types \
		"$pkgdir"/usr/bin/muttbug \
		"$pkgdir"/usr/bin/flea

	# 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="13509ff159c65e23614696967b4bd8baf7b8e16c0e85cfd89e2df8201de2dc97e6c4a426f5919f05051dee2b14f847c7203e0b236931d3cdf81dbbb221551726  mutt-1.10.1.tar.gz"