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

Eli Schwartz eschwartz at archlinux.org
Wed Jun 19 01:31:05 UTC 2019


    Date: Wednesday, June 19, 2019 @ 01:31:04
  Author: eschwartz
Revision: 482273

archrelease: copy trunk to community-x86_64

Added:
  ksh/repos/community-x86_64/
  ksh/repos/community-x86_64/PKGBUILD
    (from rev 482272, ksh/trunk/PKGBUILD)
  ksh/repos/community-x86_64/ksh.install
    (from rev 482272, ksh/trunk/ksh.install)

-------------+
 PKGBUILD    |   44 ++++++++++++++++++++++++++++++++++++++++++++
 ksh.install |   12 ++++++++++++
 2 files changed, 56 insertions(+)

Copied: ksh/repos/community-x86_64/PKGBUILD (from rev 482272, ksh/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-06-19 01:31:04 UTC (rev 482273)
@@ -0,0 +1,44 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+pkgname=ksh
+_pkgver=2020.0.0-alpha1
+pkgver=${_pkgver//-/}
+pkgrel=1
+pkgdesc="The Original AT&T Korn Shell"
+arch=('x86_64')
+url="http://kornshell.org/"
+license=('EPL')
+makedepends=('meson')
+checkdepends=('ed' 'vi' 'expect' 'openbsd-netcat')
+provides=('ksh93')
+install=ksh.install
+source=("https://github.com/att/ast/releases/download/${_pkgver}/ksh-${_pkgver}.tar.xz"{,.asc})
+sha256sums=('f383f375902557561340372eca0d3fd5076d310de563e18271e406e7f42ff25b'
+            'SKIP')
+b2sums=('a6e030bdcde2561b97cb25e7914413f6133c49795be36ee57704f996a5592c0b05e21e4bf71b2abfeccd7107033a207bf62ba1b3919ebaaef113c1a9b91a87ec'
+        'SKIP')
+validpgpkeys=('4BF045ACC726FE4E9DFC1D7762213CE2D3CB82EA') # Siteshwar Vashisht <svashisht at redhat.com>
+
+build() {
+    mkdir -p "${srcdir}"/ksh-${_pkgver}/build
+    cd "${srcdir}"/ksh-${_pkgver}/build
+
+    meson --prefix /usr \
+          --buildtype=plain \
+          ..
+    ninja
+}
+
+check() {
+    cd "${srcdir}"/ksh-${_pkgver}/build
+
+    # a couple tests are flaky and may time out
+    meson test -t 3
+}
+
+package() {
+    cd "${srcdir}"/ksh-${_pkgver}/build
+
+    DESTDIR="${pkgdir}" ninja install
+    ln -s ksh "${pkgdir}"/usr/bin/ksh93
+}

Copied: ksh/repos/community-x86_64/ksh.install (from rev 482272, ksh/trunk/ksh.install)
===================================================================
--- community-x86_64/ksh.install	                        (rev 0)
+++ community-x86_64/ksh.install	2019-06-19 01:31:04 UTC (rev 482273)
@@ -0,0 +1,12 @@
+post_install() {
+    grep -qx /bin/ksh /etc/shells || echo /bin/ksh >>/etc/shells
+    grep -qx /usr/bin/ksh /etc/shells || echo /usr/bin/ksh >>/etc/shells
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    sed -i -r '/^(\/usr)?\/bin\/ksh$/d' etc/shells
+}



More information about the arch-commits mailing list