aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 15:06:34 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 15:15:09 +0000
commit2c1a38c9c3a52b40b70507fac981eca12b59567a (patch)
treed3517102aed0b85b96a08278f3803fa3668f469d /community
parentee94932fed3a5513e19610ebd864cd9f6022ac12 (diff)
downloadaports-2c1a38c9c3a52b40b70507fac981eca12b59567a.tar.bz2
aports-2c1a38c9c3a52b40b70507fac981eca12b59567a.tar.xz
community/nmh: modernize abuild
Diffstat (limited to 'community')
-rw-r--r--community/nmh/APKBUILD21
1 files changed, 3 insertions, 18 deletions
diff --git a/community/nmh/APKBUILD b/community/nmh/APKBUILD
index 482d632c23..43c44002bf 100644
--- a/community/nmh/APKBUILD
+++ b/community/nmh/APKBUILD
@@ -7,26 +7,13 @@ pkgdesc="nmh is a powerful electronic mail handling system"
url="http://www.nongnu.org/nmh/"
arch="all"
license="BSD"
-depends=""
-depends_dev=""
makedepends="libressl-dev ncurses-dev gnutls-dev readline-dev gdbm-dev"
-install=""
subpackages="$pkgname-doc"
source="http://download.savannah.nongnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz"
-_builddir=${srcdir}/${pkgname}-${pkgver}
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
+builddir=${srcdir}/${pkgname}-${pkgver}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--host=$CHOST \
--build=$CBUILD \
@@ -38,10 +25,8 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
}
-md5sums="766ff2d37736aef76243df9c6610cb77 nmh-1.6.tar.gz"
-sha256sums="29338ae2bc8722fe8a5904b7b601a63943b72b07b6fcda53f3a354edb6a64bc3 nmh-1.6.tar.gz"
sha512sums="03775e73f69eb21088e191f41a0bbc2e631956f0d496f87be97981ac2c85d8cbe0680e8ee7e37f97e79c34ccd814fca78f2684acfc8390e333a46c710fbdb2b7 nmh-1.6.tar.gz"