summaryrefslogblamecommitdiff
path: root/user/mutt/APKBUILD
blob: e13de2e06a9ed15eb05d3e477bda7e4670f059db (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                              
                                                         

                                                    
            
             
        
                                                        
                                     
          
                                       

                                                                
                                                

                                                                                  

         
























                                                       














                                                          
                                                                                                                                                                 
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Andrew Manison <amanison@anselsystems.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=mutt
pkgver=1.11.4
pkgrel=0
pkgdesc="Small but very powerful text-mode email client"
url="http://www.mutt.org"  # No HTTPS
arch="all"
options="suid !check"  # No test suite.
license="GPL-2.0+ AND LGPL-2.0+ AND LGPL-2.1+ AND Public-Domain"
makedepends="cyrus-sasl-dev gdbm-dev gettext-tiny gpgme-dev
	libidn-dev ncurses-dev openssl-dev perl"
subpackages="$pkgname-doc $pkgname-lang"
source="https://bitbucket.org/$pkgname/$pkgname/downloads/$pkgname-$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 \
		--enable-smime \
		--with-curses \
		--with-mailpath=/var/spool/mail \
		--with-docdir=/usr/share/doc/$pkgname \
		--without-included-gettext \
		--with-ssl \
		--with-sasl
	make
}

package() {
	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="18c5bfa5c45ef70b3307afccf28f613a36de035f1b5c493f84f0571f7ba297cd0b25e01be9102a028c51c28c459c4bc62281da88926e16ce58c3c1407609e0eb  mutt-1.11.4.tar.gz"