summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew T Hoare2017-07-30 15:06:17 +0100
committerMatthew T Hoare2017-07-30 15:06:17 +0100
commite7665e9a03b47bd9cd72cb4b016f7dbde41fa91d (patch)
treeeb1478be00c5b26eb222571e9edc59051e045d9e
downloadaur-e7665e9a03b47bd9cd72cb4b016f7dbde41fa91d.tar.gz
First build for development (git) version of mksh. statically-linked.
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD42
-rw-r--r--mksh.install9
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4beb953e23b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Sun Jul 30 14:05:52 UTC 2017
+pkgbase = mksh-static-git
+ pkgdesc = The MirBSD Korn Shell - an enhanced version of the public domain ksh
+ pkgver = 55
+ pkgrel = 1
+ url = https://www.mirbsd.org/mksh.htm
+ install = mksh.install
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = git
+ depends = glibc
+ conflicts = mksh
+ source = mksh::git+http://github.com/MirBSD/mksh#branch=master
+ source = https://www.mirbsd.org/TaC-mksh.txt
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = mksh-static-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..40466a76f09
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 224581 2017-04-23 14:47:41Z ttoepper $
+# Maintainer: Matthew T Hoare <matthew dot t dot hoare at gmail dot com>
+# Contributor: Thorsten Töpper <atsutane-tu@freethoughts.de>
+# Contributor: Daniel Hommel <dhommel@gmail.com>
+
+pkgname=mksh-static-git
+_pkgname=mksh
+_pkgver=R55
+pkgver=55
+pkgrel=1
+pkgdesc='The MirBSD Korn Shell - an enhanced version of the public domain ksh'
+url='https://www.mirbsd.org/mksh.htm'
+license=('custom')
+arch=('i686' 'x86_64')
+depends=('glibc') # Make namcap happy.
+makedepends=('git')
+conflicts=('mksh')
+install=mksh.install
+source=('mksh::git+http://github.com/MirBSD/mksh#branch=master'
+ 'https://www.mirbsd.org/TaC-mksh.txt')
+md5sums=('SKIP'
+ 'SKIP')
+
+check() {
+ cd "$srcdir/$_pkgname"
+ ./test.sh
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ LDSTATIC=-static sh Build.sh -r
+}
+
+package() {
+ cd "$srcdir/$_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"
+ install -D -m 644 "$srcdir/TaC-mksh.txt" "$pkgdir/usr/share/licenses/mksh/TaC-mksh.txt"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/mksh.install b/mksh.install
new file mode 100644
index 00000000000..f096a2b6617
--- /dev/null
+++ b/mksh.install
@@ -0,0 +1,9 @@
+post_install() {
+ grep -x /bin/mksh /etc/shells >/dev/null || echo /bin/mksh >>/etc/shells
+}
+
+post_remove() {
+ sed -i "/^\/bin\/mksh$/d" /etc/shells
+}
+
+# vim:set ts=2 sw=2 et: