From e11e2261c361e27b75678fc34d488448e4f61ee2 Mon Sep 17 00:00:00 2001 From: PedroEdiaz Date: Sun, 16 Jun 2024 12:35:13 +0600 Subject: [PATCH] Add package: oksh --- core/oksh.d/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 core/oksh.d/Makefile diff --git a/core/oksh.d/Makefile b/core/oksh.d/Makefile new file mode 100644 index 0000000..87a0563 --- /dev/null +++ b/core/oksh.d/Makefile @@ -0,0 +1,33 @@ +package=oksh +version=7.1 +pkgver=${version}_0 +description=Portable OpenBSD ksh +conflict= +homepage=http://github.com/ibara/oksh +license=BSD-3-Clause +replace= + +alternatives=sh:/usr/bin/sh:oksh +shlib-provides= +shlib-requires=libc.so + +include ../../Makefile + +SOURCES = \ + ${package}-${version}.tar.gz + +${package}-${version}.tar.gz: + ${DOWNLOAD} https://github.com/ibara/oksh/archive/$@ + ${SHA256} "244ac5fed6e22b5cb0e817e9825f8fe755d5d648ed925940e77a3725f5b763a4" + +prepare: ${SOURCES} + tar -zxf ${package}-${version}.tar.gz + mv ${package}-${package}-${version} build + +root: + ./configure --prefix=/usr + ${MAKE} + ${MAKE} DESTDIR=${root} install + + ln -sf oksh "${root}/usr/bin/sh" +