aboutsummaryrefslogtreecommitdiffstats
path: root/testing/oksh
diff options
context:
space:
mode:
authorsystmkor <systmkor@gmail.com>2015-01-17 18:27:05 -0800
committerNatanael Copa <ncopa@alpinelinux.org>2015-01-21 12:21:07 +0000
commitf1b389cdc2188974291bf45e6095b2137a241982 (patch)
tree3f998549e44a07c34039951f317cf71f5b1d1c13 /testing/oksh
parentc3b6fd346717783b4414fb22a8d9cf053ec741af (diff)
downloadaports-f1b389cdc2188974291bf45e6095b2137a241982.tar.bz2
aports-f1b389cdc2188974291bf45e6095b2137a241982.tar.xz
testing/oksh: new aport
Korn Shell ported version of ksh from OpenBSD http://www.connochaetos.org/oksh/
Diffstat (limited to 'testing/oksh')
-rw-r--r--testing/oksh/APKBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/oksh/APKBUILD b/testing/oksh/APKBUILD
new file mode 100644
index 0000000000..6b896d06da
--- /dev/null
+++ b/testing/oksh/APKBUILD
@@ -0,0 +1,58 @@
+# Contributor: Orion <systmkor@gmail.com
+# Maintainer: Orion <systmkor@gmail.com
+# Reference
+# https://aur.archlinux.org/packages/oksh/
+pkgname=oksh
+pkgver=0.5.0
+pkgrel=0
+pkgdesc="Korn Shell ported version of ksh from OpenBSD"
+url="http://www.connochaetos.org/oksh"
+arch="all"
+license="GPL3"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://www.connochaetos.org/$pkgname/${pkgname}-${pkgver}.tar.gz"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man/man1/ \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" prefix=${pkgdir} mandir=$pkgdir/usr/share/man/man1/ install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+doc() {
+ # Man pages
+ mkdir -p "$subpkgdir"/usr/share/man || return 1
+ mv "$pkgdir"/usr/share/man/man* "$subpkgdir"/usr/share/man/man1/ || return 1
+}
+
+md5sums="e8118f06ac41ff7ce416706ffc649192 oksh-0.5.0.tar.gz"
+sha256sums="63c7570afdcd124244584ace0e8ed0c5f3dd57f0f5cba0d7746ee3aeb194686e oksh-0.5.0.tar.gz"
+sha512sums="c93dad98444cbdffe40b2448ae39d38f347fb93a8008e5ee411cbfdf7defde2e454f17655b6c709e1536261ad01ef5cd81845c4569bffeae3405654963fa9088 oksh-0.5.0.tar.gz"