APKBUILD 1.55 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.11
5
pkgrel=1
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"
12 13 14 15
subpackages="$pkgname-doc $pkgname-lang $pkgname-openrc $pkgname-vim:vim:noarch"
source="https://marlam.de/msmtp/releases/msmtp-$pkgver.tar.xz
	msmtp.confd
	msmtp.initd"
Natanael Copa's avatar
Natanael Copa committed
16 17

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

package() {
TBK's avatar
TBK committed
29
	make DESTDIR="$pkgdir" install
30 31 32

	install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
	install -Dm644 "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname"
33 34 35

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	install -m644 README NEWS "$pkgdir"/usr/share/doc/$pkgname
Natanael Copa's avatar
Natanael Copa committed
36 37
}

Sören Tempel's avatar
Sören Tempel committed
38 39 40 41
vim() {
	depends=""
	pkgdesc="Vim syntax for $pkgname"

Sören Tempel's avatar
Sören Tempel committed
42
	install -Dm644 "$builddir"/scripts/vim/$pkgname.vim \
Sören Tempel's avatar
Sören Tempel committed
43 44 45
		"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
}

Leo's avatar
Leo committed
46
sha512sums="77595ca3d06781aa908677edae08bef92840e69dde5db8eedb555327b671d87cde441181fa17342f5b9492e76f0520a49bfa86dafce9d93844137ae7f96eac16  msmtp-1.8.11.tar.xz
47
3839d7e8400cf897830c674f59563e225096d9755121d1ac14f3b493ab4cc0672228a9b14b9d9620d566593e2ae27d322a78c46791c6b5166ab82275d25dc0d3  msmtp.confd
Leonardo Arena's avatar
Leonardo Arena committed
48
0e1b32b07ccac6f5a174a1e317390815b459a4a7ca4f15672456ac0a30c89edb93001a8047c38d1f8da65b9f07a7b17b3270a0a07248a6be248500cd42773cef  msmtp.initd"