aboutsummaryrefslogtreecommitdiffstats
path: root/main/msmtp/APKBUILD
blob: 03bc99202bd88b41dce552e98dfd9ad223387147 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=msmtp
pkgver=1.8.1
pkgrel=1
pkgdesc="SMTP client with a sendmail compatible interface"
url="https://marlam.de/msmtp/"
arch="all"
license="GPL-3.0-or-later"
options="!check" # no test suite
makedepends="gettext-dev gnutls-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-vim:vim:noarch"
source="https://marlam.de/msmtp/releases/$pkgname-$pkgver.tar.xz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-ssl=gnutls
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

vim() {
	depends=""
	pkgdesc="Vim syntax for $pkgname"

	install -Dm644 "$builddir"/scripts/vim/$pkgname.vim \
		"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
}

sha512sums="00c5d8b810d48c171fc975115911c4cdf3e18efb91448800bdab320d0f850f4893343b436899722d3b9c82e3781c3e103dc31175c89a5c867511c14df5b9785a  msmtp-1.8.1.tar.xz"