[arch-commits] Commit in mksh/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:16:09 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:16:09
  Author: felixonmars
Revision: 658394

archrelease: copy trunk to community-staging-x86_64

Added:
  mksh/repos/community-staging-x86_64/
  mksh/repos/community-staging-x86_64/PKGBUILD
    (from rev 658393, mksh/trunk/PKGBUILD)
  mksh/repos/community-staging-x86_64/mksh.install
    (from rev 658393, mksh/trunk/mksh.install)

--------------+
 PKGBUILD     |   39 +++++++++++++++++++++++++++++++++++++++
 mksh.install |   14 ++++++++++++++
 2 files changed, 53 insertions(+)

Copied: mksh/repos/community-staging-x86_64/PKGBUILD (from rev 658393, mksh/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 13:16:09 UTC (rev 658394)
@@ -0,0 +1,39 @@
+# Maintainer: Alad Wenter <alad at archlinux.org>
+# Contributor: Thorsten Töpper <atsutane-tu at freethoughts.de>
+# Contributor: Daniel Hommel <dhommel at gmail.com>
+
+pkgname=mksh
+_pkgver=R57
+pkgver=57
+pkgrel=3
+pkgdesc='MirBSD Korn Shell'
+url='https://www.mirbsd.org/mksh.htm'
+license=('custom')
+arch=('x86_64')
+depends=('glibc')
+checkdepends=('ed')
+install=mksh.install
+source=("https://www.mirbsd.org/MirOS/dist/mir/mksh/$pkgname-$_pkgver.tgz")
+sha256sums=('3d101154182d52ae54ef26e1360c95bc89c929d28859d378cc1c84f3439dbe75')
+
+check() {
+  cd "$pkgname"
+  PERL=/usr/bin/perl ./test.sh
+}
+
+build() {
+  cd "$pkgname"
+  sh Build.sh -r
+}
+
+package() {
+  cd "$pkgname"
+  install -D -m 755 mksh "$pkgdir/usr/bin/mksh"
+  install -D -m 644 mksh.1 "$pkgdir/usr/share/man/man1/mksh.1"
+  install -D -m 644 dot.mkshrc "$pkgdir/etc/skel/.mkshrc"
+
+  mkdir -p "$pkgdir/usr/share/licenses/mksh/"
+  sed -n '/Copyright/,/\*\//p' main.c > "$pkgdir/usr/share/licenses/mksh/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: mksh/repos/community-staging-x86_64/mksh.install (from rev 658393, mksh/trunk/mksh.install)
===================================================================
--- community-staging-x86_64/mksh.install	                        (rev 0)
+++ community-staging-x86_64/mksh.install	2020-07-07 13:16:09 UTC (rev 658394)
@@ -0,0 +1,14 @@
+post_install() {
+  grep -qx /bin/mksh /etc/shells || echo /bin/mksh >>/etc/shells
+  grep -qx /usr/bin/mksh /etc/shells || echo /usr/bin/mksh >>/etc/shells
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  sed -i -r '/^(\/usr)?\/bin\/mksh$/d' etc/shells
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list