aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b81143379426f49703c1d16fcfb12cb16b4a763 (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
pkgname=mutt-kz-git
pkgver=1.5.23.1.r0.g3bbcc84
pkgrel=3

pkgdesc='Small but powerful text-based mail client'
url='https://github.com/karelzak/mutt-kz'
arch=('i686' 'x86_64')
license=('GPL')

depends=('gdbm' 'gpgme' 'openssl' 'libsasl' 'libidn'
         'mime-types' 'ncurses' 'zlib' 'notmuch-runtime')
makedepends=('git' 'gnupg' 'libxslt')

conflicts=('mutt')
provides=('mutt')

options=(strip debug)

source=('git+https://github.com/karelzak/mutt-kz.git' 'xdg.patch')

sha1sums=('SKIP'
          '8cbae5a7ade3812cbdcb8a8dfabb29b042b7296a')

pkgver() {
	cd mutt-kz
	git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
	cd mutt-kz

	patch -p1 < "$srcdir/xdg.patch"
}

build() {
	cd mutt-kz

	./prepare \
	    --prefix=/usr \
	    --sysconfdir=/etc \
	    --enable-debug \
	    --enable-gpgme \
	    --enable-hcache \
	    --enable-imap \
	    --enable-notmuch \
	    --enable-pgp \
	    --enable-smtp \
	    --with-gss \
	    --with-idn \
	    --with-sasl \
	    --with-ssl=/usr

	make
}

package() {
	cd mutt-kz

	make DESTDIR="$pkgdir" install
	rm "$pkgdir/etc/mime.types"
}