aboutsummaryrefslogtreecommitdiffstats
path: root/main/msmtp/APKBUILD
blob: 7167422004fa98460ace7c6640888feeaff5d202 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=msmtp
pkgver=1.6.6
pkgrel=1
pkgdesc="SMTP client with a sendmail compatible interface"
url="http://msmtp.sourceforge.net/"
arch="all"
license="GPL3+"
depends=""
makedepends="libressl-dev"
install=""
subpackages="$pkgname-doc $pkgname-vim:vim:noarch"
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

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

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

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

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

md5sums="82b0520b57db4b2cf05333d11fb5974d  msmtp-1.6.6.tar.xz"
sha256sums="da15db1f62bd0201fce5310adb89c86188be91cd745b7cb3b62b81a501e7fb5e  msmtp-1.6.6.tar.xz"
sha512sums="30f33648b66a6b230cd38d0eee4c916a631a51bddcc1a15c9f7b324305506cb83b9c95f95def9150d0b783d38000db409981331b3c6a756232f0ce49e9b343ab  msmtp-1.6.6.tar.xz"