aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/loksh/APKBUILD32
-rw-r--r--community/loksh/loksh.post-install3
l---------community/loksh/loksh.post-upgrade1
-rw-r--r--community/loksh/loksh.pre-deinstall3
4 files changed, 39 insertions, 0 deletions
diff --git a/community/loksh/APKBUILD b/community/loksh/APKBUILD
new file mode 100644
index 0000000000..0c13dd65f1
--- /dev/null
+++ b/community/loksh/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
+pkgname=loksh
+pkgver=6.0
+pkgrel=0
+pkgdesc="A Linux port of OpenBSD's ksh"
+url="https://github.com/dimkr/$pkgname"
+arch="all"
+license="ISC"
+replaces="oksh"
+depends=""
+depends_dev=""
+makedepends=""
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/dimkr/$pkgname/archive/$pkgver.tar.gz"
+
+builddir="$srcdir"/$pkgname-$pkgver
+build() {
+ make -C "$builddir" || return 1
+}
+
+package() {
+ make DESTDIR="$pkgdir" \
+ PREFIX="/usr" \
+ BIN_DIR="/bin" \
+ -C "$builddir" install || return 1
+}
+
+md5sums="6a1ebc279d2f2e478c5ed72950ab7428 loksh-6.0.tar.gz"
+sha256sums="def14be261b14b93f04b575175d357682d68dd79e1569ada39339674480da070 loksh-6.0.tar.gz"
+sha512sums="a29ff288ae0980e8f9b239a5127df4a97c71c6b312537ef4a173355dc88cc24d68a714b5b4225fe2428e3e9759ca003ec84fa76c62a0771bf0b0e1d714a5566f loksh-6.0.tar.gz"
diff --git a/community/loksh/loksh.post-install b/community/loksh/loksh.post-install
new file mode 100644
index 0000000000..0844ccf68b
--- /dev/null
+++ b/community/loksh/loksh.post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+add-shell '/bin/ksh'
+exit 0
diff --git a/community/loksh/loksh.post-upgrade b/community/loksh/loksh.post-upgrade
new file mode 120000
index 0000000000..9c69b08659
--- /dev/null
+++ b/community/loksh/loksh.post-upgrade
@@ -0,0 +1 @@
+loksh.post-install \ No newline at end of file
diff --git a/community/loksh/loksh.pre-deinstall b/community/loksh/loksh.pre-deinstall
new file mode 100644
index 0000000000..2a4b7d83cd
--- /dev/null
+++ b/community/loksh/loksh.pre-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+remove-shell '/bin/ksh'
+exit 0