void-packages/srcpkgs/yash/template
2017-10-29 17:59:24 +01:00

32 lines
987 B
Bash

# Template file for 'yash'
pkgname=yash
version=2.46
revision=1
build_style=configure
configure_args="--prefix=/usr"
make_build_args="LDLIBS=-lm LDLIBS+=${XBPS_CROSS_BASE}/usr/lib/libncursesw.a"
makedepends="ncurses-devel"
short_desc="Yet another shell (POSIX-compliant)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
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=93431d897ce2b176c9f97b879c70a426ebc125b073d5894c00cd746f3a8455cb
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
}