From 6bfa97f3776df1484b9b341306ed6dc86ee8662d Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 28 Mar 2017 12:18:55 +0200 Subject: [PATCH] New package: yash-2.44 --- srcpkgs/yash/template | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/yash/template diff --git a/srcpkgs/yash/template b/srcpkgs/yash/template new file mode 100644 index 0000000000..86e46c94a0 --- /dev/null +++ b/srcpkgs/yash/template @@ -0,0 +1,31 @@ +# Template file for 'yash' +pkgname=yash +version=2.44 +revision=1 +build_style=configure +configure_args="--prefix=/usr" +makedepends="ncurses-devel" +short_desc="Yet another shell (POSIX-compliant)" +maintainer="Leah Neukirchen " +license="GPL-2" +homepage="http://yash.osdn.jp/" +_changelog="https://github.com/magicant/yash/releases" +distfiles="https://github.com/magicant/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.xz" +checksum=f1352b49195a3879284e3ab60af4b30d3a87d696c838b246e2068ccbdfcf2e66 +register_shell="/bin/yash" +alternatives=" + sh:sh:/usr/bin/yash + sh:sh.1:/usr/share/man/man1/yash.1" + +post_extract() { + sed -i '40i#undef iswdigit' arith.c # macro in musl + if [ "$CROSS_BUILD" ]; then + sed -i 's/checkby "${tempout}"/true/' configure + fi +} +pre_build() { + if [ "$CROSS_BUILD" ]; then + make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" \ + LDFLAGS= LDLIBS= makesignum + fi +}