aboutsummaryrefslogtreecommitdiffstats
path: root/testing/swaks/APKBUILD
blob: 890d9e3b8a0146b2e695559e6bf4240103d02844 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=swaks
pkgver=20190914.0
pkgrel=0
pkgdesc="Swiss Army Knife for SMTP"
url="http://www.jetmore.org/john/code/swaks/"
arch="noarch"
license="GPL-2.0"
depends="perl"
subpackages="$pkgname-doc"
source="http://www.jetmore.org/john/code/swaks/files/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	return 0
}

package() {
	cd "$builddir"
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

doc() {
	cd "$builddir"
	mkdir -p $subpkgdir/usr/share/doc/$pkgname
	mv doc/* $subpkgdir/usr/share/doc/$pkgname
}

sha512sums="3167435a73e7729d090cba2431d5828895c25154c36d92e0ebecd5c4e2430ca596d62bb3e6eb3b65eadabd52c8331fe3bb8a492cce3ad247fa113c0af9c67339  swaks-20190914.0.tar.gz"