APKBUILD 1.02 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=msmtp
Leo's avatar
Leo committed
4
pkgver=1.8.5
Sören Tempel's avatar
Sören Tempel committed
5
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
6
pkgdesc="SMTP client with a sendmail compatible interface"
TBK's avatar
TBK committed
7
url="https://marlam.de/msmtp/"
Natanael Copa's avatar
Natanael Copa committed
8
arch="all"
9
license="GPL-3.0-or-later"
TBK's avatar
TBK committed
10
options="!check" # no test suite
11
makedepends="gettext-dev gnutls-dev"
TBK's avatar
TBK committed
12
subpackages="$pkgname-doc $pkgname-lang $pkgname-vim:vim:noarch"
TBK's avatar
TBK committed
13
source="https://marlam.de/msmtp/releases/$pkgname-$pkgver.tar.xz"
Natanael Copa's avatar
Natanael Copa committed
14 15

build() {
Sören Tempel's avatar
Sören Tempel committed
16
	cd "$builddir"
17 18 19 20
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
21 22
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
Leo's avatar
Leo committed
23
		--localstatedir=/var
TBK's avatar
TBK committed
24
	make
Natanael Copa's avatar
Natanael Copa committed
25 26 27
}

package() {
Sören Tempel's avatar
Sören Tempel committed
28
	cd "$builddir"
TBK's avatar
TBK committed
29
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
30 31
}

32 33 34 35
vim() {
	depends=""
	pkgdesc="Vim syntax for $pkgname"

Sören Tempel's avatar
Sören Tempel committed
36
	install -Dm644 "$builddir"/scripts/vim/$pkgname.vim \
37 38 39
		"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
}

Leo's avatar
Leo committed
40
sha512sums="16e85d714b15e07f96f5ed5bf32b0c97a970877c13cfb77b5df29f7ea075d4da899a58786dcd60ace049b1f15061f4bcf96fa7fd442413560066a6c17a60f9a8  msmtp-1.8.5.tar.xz"