aboutsummaryrefslogtreecommitdiffstats
path: root/main/msmtp/APKBUILD
blob: 779693f139c938b2ff2f91c69bd67225c386d462 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=msmtp
pkgver=1.6.5
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"/$pkgname-$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 \
		--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="50a8c9bb72f8222779db6b4aae2965e0  msmtp-1.6.5.tar.xz"
sha256sums="76a0d60693c7e65d0c7a12f01d300882d280b1e1be0202f54730ae44d44a5006  msmtp-1.6.5.tar.xz"
sha512sums="0ce031aec2f8bf882a0331a20cce77d3fb740a481e7a327510ac19094d6c5c8b7d4c8a7bc964acab34b9448cfedc29df2c4cdccd62e14ec93a2b4df11a43ad5c  msmtp-1.6.5.tar.xz"