blob: f37823db8fa797a6171e38892f95661449b35245 (
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
|
# Maintainer: Justin Gassner <justin.gassner@mailbox.org>
_pkgname=mutt
pkgname=$_pkgname-jxir
pkgver=2.2.12.r69.g354c5b11
pkgrel=1
pkgdesc='Small but very powerful text-based mail client'
arch=('x86_64')
url='http://www.mutt.org'
license=('GPL')
depends=('gpgme' 'libidn' 'perl')
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 \
--disable-nls \
--disable-full-doc \
--with-curses=/usr
make
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install
rm -r "$pkgdir"/etc/
rm -r "$pkgdir"/usr/share/doc/mutt/samples/
rm "$pkgdir"/usr/share/doc/mutt/{applying-patches,devel-notes,patch-notes,PGP-Notes,smime-notes}.txt
rm "$pkgdir"/usr/share/doc/mutt/{ChangeLog,COPYRIGHT,GPL,INSTALL,NEWS,README,README.SECURITY,README.SSL,TODO}
rm "$pkgdir"/usr/share/man/man1/{mutt_pgpring,pgpewrap}.1
}
|