aboutsummaryrefslogtreecommitdiffstats
path: root/main/mksh
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-08-08 11:33:36 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2015-08-10 12:57:31 +0000
commitedfdd532b6c866872fbc84bc23e7c57833176a6c (patch)
treea6b0f12e08b07f6f9d2f32fe6c41a393b9f438a0 /main/mksh
parent5adcc23a56ac76b061bfe196d2f799ea91c962ca (diff)
downloadaports-edfdd532b6c866872fbc84bc23e7c57833176a6c.tar.bz2
aports-edfdd532b6c866872fbc84bc23e7c57833176a6c.tar.xz
main/mksh: upgrade to 51
Diffstat (limited to 'main/mksh')
-rw-r--r--main/mksh/APKBUILD16
-rw-r--r--main/mksh/mksh.post-install2
-rw-r--r--main/mksh/mksh.pre-deinstall2
3 files changed, 9 insertions, 11 deletions
diff --git a/main/mksh/APKBUILD b/main/mksh/APKBUILD
index cf28eb73c6..a1d7906de7 100644
--- a/main/mksh/APKBUILD
+++ b/main/mksh/APKBUILD
@@ -1,24 +1,22 @@
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
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 1780754e12..77223923d7 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 d6e4f9325e..cc4e95411c 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