blob: c438714ac651aa416ee018d471f0c1bf4e87306e (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Contributor: Andrew Manison<amanison@anselsystems.com>
# Maintainer: Andrew Manison<amanison@anselsystems.com>
pkgname=mutt
pkgver=1.5.22
pkgrel=0
pkgdesc="a small but very powerful text-mode email client"
url="http://www.mutt.org"
arch="all"
license="GPL"
depends=
makedepends="cyrus-sasl-dev gdbm-dev gettext-dev gpgme-dev libiconv-dev
libidn-dev ncurses-dev openssl-dev perl"
install=
subpackages="$pkgname-doc $pkgname-lang"
source="ftp://ftp.mutt.org/pub/mutt/devel/mutt-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
# apply patches here
}
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 \
--with-curses \
--with-mailpath=/var/spool/mail \
--with-docdir=/usr/share/doc/mutt \
--without-included-gettext \
--with-ssl \
--with-sasl \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
rm "$pkgdir"/etc/*.dist \
"$pkgdir"/etc/mime.types \
"$pkgdir"/usr/bin/muttbug \
"$pkgdir"/usr/bin/flea \
|| return 1
# fix up default config
cat contrib/gpg.rc >> "$pkgdir"/etc/Muttrc
grep -C 5 "^color" contrib/sample.muttrc >> "$pkgdir"/etc/Muttrc
echo "source /etc/Muttrc.local" >> "$pkgdir"/etc/Muttrc
echo "# Local configuration for Mutt." > "$pkgdir"/etc/Muttrc.local
}
md5sums="48267aba1bc53db636777f4a1ec87cb6 mutt-1.5.22.tar.gz"
sha256sums="8feae890ed0758a5108bafaef27bd8fc9c378675acf25a3c620f2c7b7540f3a7 mutt-1.5.22.tar.gz"
sha512sums="96edfafa9460bbaff1c5a78f40735599f53e08f794866822558d59e351646b1d2045afbf97000012a6d9f261649e9b473c01f89ade542712120f9213c657b0a1 mutt-1.5.22.tar.gz"
|