Subject: [alpine-aports] [PATCH] testing/s-nail: take ownership

From: Ivan Tham <[email-masked]>
Date: Sun, 30 Apr 2017 16:01:05 +0800

---
 testing/s-nail/APKBUILD | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/testing/s-nail/APKBUILD b/testing/s-nail/APKBUILD
index 8d215acf86..e650cf266f 100644
--- a/testing/s-nail/APKBUILD
+++ b/testing/s-nail/APKBUILD
@@ -1,26 +1,27 @@
-# Maintainer: Natanael Copa <[email-masked]>
+# Contributor: Ivan Tham <[email-masked]>
+# Maintainer: Ivan Tham <[email-masked]>
 pkgname=s-nail
 pkgver=14.8.16
-_ver=${pkgver//./_}
 pkgrel=0
-pkgdesc="simple mail user agent for command line"
+pkgdesc="An incarnation of BSD Mail / POSIX mailx"
 url="https://www.sdaoden.eu/code.html#s-nail"
 arch="all"
 license="BSD"
-depends=""
-depends_dev=""
-makedepends="$depends_dev"
-install=""
+makedepends="libressl-dev libidn-dev"
+options="suid"
+replaces="mailx"
 subpackages="$pkgname-doc"
 source="https://ftp.sdaoden.eu/s-nail-$pkgver.tar.xz"
-options="!check suid"
+builddir="$srcdir/"$pkgname-$pkgver
 
-builddir="$srcdir"/s-nail-$pkgver
 build() {
 	cd "$builddir"
-	make CONFIG=MEDIUM PREFIX=/usr SYSCONFDIR=/etc MANDIR=/usr/share/man \
-		LIBEXECDIR=/usr/lib/s-nail \
-		all
+	make SID= NAIL=mail PREFIX=/usr SYSCONFDIR=/etc WANT_AUTOCC=0 all
+}
+
+check() {
+	cd "$builddir"
+	make test
 }
 
 package() {
-- 
2.12.2

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---