aboutsummaryrefslogtreecommitdiffstats
path: root/community/loksh
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-09-05 20:01:10 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2016-09-05 20:03:15 +0200
commit5dc93825c3d59a2269371c108b869afc10116484 (patch)
treef799b3fab1e62617f9efa5dfca36711762621221 /community/loksh
parentaa080bf0e54b0974069abe9b8acb4151a3c72a80 (diff)
downloadaports-5dc93825c3d59a2269371c108b869afc10116484.tar.bz2
aports-5dc93825c3d59a2269371c108b869afc10116484.tar.xz
community/loksh: move from testing
Diffstat (limited to 'community/loksh')
-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