Subject: [alpine-aports] [PATCH] main/mksh: upgrade to 51

From: Sören Tempel <[email-masked]>
Date: Sat, 8 Aug 2015 11:33:36 +0200

---
 main/mksh/APKBUILD           | 16 +++++++---------
 main/mksh/mksh.post-install  |  2 +-
 main/mksh/mksh.pre-deinstall |  2 +-
 3 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/main/mksh/APKBUILD b/main/mksh/APKBUILD
index cf28eb7..a1d7906 100644
--- a/main/mksh/APKBUILD
+++ b/main/mksh/APKBUILD
@@ -1,24 +1,22 @@
 # Maintainer: Eivind Uggedal <[email-masked]>
 pkgname=mksh
-pkgver=50f
-_pkgver=R50f
-pkgrel=1
+pkgver=51
+_pkgver=R$pkgver
+pkgrel=0
 pkgdesc="MirBSD KSH Shell"
 url="http://mirbsd.de/mksh"
 arch="all"
 license="BSD"
 depends=""
 depends_dev=""
-makedepends="$depends_dev"
+makedepends=""
 install="mksh.post-install mksh.post-upgrade mksh.pre-deinstall"
 subpackages="$pkgname-doc"
 source="https://www.mirbsd.org/MirOS/dist/mir/mksh/$pkgname-$_pkgver.tgz"
 
 _builddir="$srcdir/$pkgname"
-
 build() {
 	cd "$_builddir"
-
 	sh Build.sh -r -c lto
 }
 
@@ -29,6 +27,6 @@ package() {
 	install -D -m 644 dot.mkshrc "$pkgdir"/usr/share/doc/mksh/dot.mkshrc
 }
 
-md5sums="c3bdd668992e7369165910f0902fa854  mksh-R50f.tgz"
-sha256sums="74e051ce92ece9555d91505b956572f64668fc88c5ccabee742099e7f29a2bcb  mksh-R50f.tgz"
-sha512sums="ca0b5d986727afc8b295b4a81c84e0048f1650c4ea3c45dcc05cabcc474bca4ab4719a063b708f3ddee08d65f35651652c0938b4279f6d706182d46ea5566cc1  mksh-R50f.tgz"
+md5sums="8e522475da795c60f35a6f8035481baf  mksh-R51.tgz"
+sha256sums="9feeaa5ff33d8199c0123675dec29785943ffc67152d58d431802bc20765dadf  mksh-R51.tgz"
+sha512sums="dea2dea283959c0564cb6e9dbb9eecf004365cd01d83f1a8bbaff319c8ebefc4eb5e85898e207c7ce0577af525be0563e7c6b5f4b3449a2439e93f3f8bfd43ea  mksh-R51.tgz"
diff --git a/main/mksh/mksh.post-install b/main/mksh/mksh.post-install
index 1780754..7722392 100644
--- a/main/mksh/mksh.post-install
+++ b/main/mksh/mksh.post-install
@@ -1,3 +1,3 @@
 #!/bin/sh
-grep -q '/usr/bin/mksh' /etc/shells || echo '/usr/bin/mksh' >> /etc/shells
+add-shell '/usr/bin/mksh'
 exit 0
diff --git a/main/mksh/mksh.pre-deinstall b/main/mksh/mksh.pre-deinstall
index d6e4f93..cc4e954 100644
--- a/main/mksh/mksh.pre-deinstall
+++ b/main/mksh/mksh.pre-deinstall
@@ -1,3 +1,3 @@
 #!/bin/sh
-sed -i '/^\/usr\/bin\/mksh/d' /etc/shells
+remove-shell '/usr/bin/mksh'
 exit 0
-- 
2.5.0

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