summaryrefslogtreecommitdiffstats
path: root/mutt/PKGBUILD
blob: ae7d4fb5f7d9fa51ff6630de72285907d4daa4cb (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
# Maintainer: Justin Gassner <justin.gassner@mailbox.org>

_pkgname=mutt
pkgname=$_pkgname-jxir
pkgver=1.12.2.r229.g40e7c914
pkgrel=1
pkgdesc='Small but very powerful text-based mail client'
arch=('x86_64')
url='http://www.mutt.org'
license=('GPL')
depends=('gpgme' 'libidn')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://gitlab.com/muttmua/mutt.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long | sed 's/mutt-//;s/rel-/r/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname"
  autoreconf -i
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --enable-gpgme \
    --disable-pgp \
    --enable-sidebar \
    --enable-hcache \
    --disable-nls \
    --disable-full-doc \
    --with-curses=/usr \
    --with-regex
  make
}

package() {
  cd "$srcdir/$_pkgname"
  make DESTDIR="$pkgdir" install
  rm "$pkgdir"/etc/Muttrc.dist
  rm "$pkgdir"/etc/mime.types{,.dist}
  rm "$pkgdir"/usr/share/man/man1/pgpewrap.1
  rm -r "$pkgdir"/usr/share/doc/mutt/samples/
  rm "$pkgdir"/usr/share/doc/mutt/{applying-patches.txt,devel-notes.txt,patch-notes.txt,PGP-Notes.txt,smime-notes.txt}
  rm "$pkgdir"/usr/share/doc/mutt/{ChangeLog,COPYRIGHT,GPL,INSTALL,NEWS,README,README.SECURITY,README.SSL,TODO}
}