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

_builddir="$srcdir"/msmtp-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--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"
	arch="noarch"

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

md5sums="6d9384c09405db9476beaa2237c56705  msmtp-1.6.3.tar.xz"
sha256sums="f982be069c0772c3ee83925f552f5dac5fb307d2d1c68202f9926bb13b757355  msmtp-1.6.3.tar.xz"
sha512sums="ac594e90d9ef6369fcbe130b0c05095b5729b7199129c44695edf2a4431c175edd5df1d9dadabf3f7734611acbe68d21fc4d3a446ba7c2eb7e9b811f7c07c5f2  msmtp-1.6.3.tar.xz"