aboutsummaryrefslogtreecommitdiffstats
path: root/main/email/APKBUILD
blob: 7b7c3008a98862db4bedf6e9d7a8094bb4570da4 (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
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=email
pkgver=3.1.4
pkgrel=7
pkgdesc="A command line SMTP client that's simple"
url="http://www.cleancode.org/projects/email"
arch="all"
license="GPL"
depends="openssl"
makedepends="openssl-dev"
source="https://dev.alpinelinux.org/archive/email/email-$pkgver.tar.gz"

subpackages="$pkgname-doc"

prepare() {
	cd "$srcdir"/$pkgname-*
	sed -i -e 's/^\(VCARD.*\)/\# \1/' email.conf
}

build() {
	cd "$srcdir"/$pkgname-*
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man
	make
}

check() {
	cd "$srcdir"/$pkgname-*
	./src/email -h
}

package() {
	cd "$srcdir"/$pkgname-*
	make DESTDIR="$pkgdir" install
}

sha512sums="1c57bd0465e82f8a44bea83936e2c48d1fbd1faecf3dfccba6be857c384b2c8d78a0c035c3e434ecb9df6151809fb6b792874bff927623f3adf7d499b61125c0  email-3.1.4.tar.gz"