summaryrefslogtreecommitdiff
path: root/community/mksh/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-23 23:15:26 +0000
committerroot <root@rshg054.dnsready.net>2011-11-23 23:15:26 +0000
commit1e1e4927b05d9b242bfe83794e3a98ab2c8f79ef (patch)
tree070846cb6770ab17d394d88c3f0cd3ad3eb89842 /community/mksh/PKGBUILD
parent851ab9aa99e9bda38f88b5f5ade096c9137e11c8 (diff)
Wed Nov 23 23:15:26 UTC 2011
Diffstat (limited to 'community/mksh/PKGBUILD')
-rw-r--r--community/mksh/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/mksh/PKGBUILD b/community/mksh/PKGBUILD
new file mode 100644
index 000000000..2fb3842b7
--- /dev/null
+++ b/community/mksh/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 59301 2011-11-22 22:07:16Z ttopper $
+# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>
+# Contributor: Daniel Hommel <dhommel@gmail.com>
+
+pkgname=mksh
+pkgver=R40c
+pkgrel=2
+pkgdesc="The MirOS KornShell - an enhanced version of the public domain ksh"
+url="http://mirbsd.de/mksh"
+license=("custom")
+makedepends=('cpio')
+arch=('i686' 'x86_64')
+install=mksh.install
+source=("https://www.mirbsd.org/MirOS/dist/mir/mksh/$pkgname-$pkgver.cpio.gz"
+ "https://www.mirbsd.org/TaC-mksh.txt")
+md5sums=('43a79f721091833bdab3d00fbfe54a14'
+ '6baf6a174d89c47cac86118dc9e93faa')
+
+build() {
+ cd "$srcdir"
+ # makepkg can't extract cpio files
+ cpio -mid < "$pkgname-$pkgver.cpio"
+
+ cd "$srcdir/$pkgname"
+ sh Build.sh -r -c lto
+ ./test.sh
+ gzip mksh.1
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ install -D -m 755 mksh "$pkgdir/bin/mksh"
+ install -D -m 644 mksh.1.gz "$pkgdir/usr/share/man/man1/mksh.1.gz"
+ 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: