2017-03-28 10:18:55 +00:00
|
|
|
# Template file for 'yash'
|
|
|
|
pkgname=yash
|
2017-07-06 11:17:29 +00:00
|
|
|
version=2.45
|
|
|
|
revision=1
|
2017-03-28 10:18:55 +00:00
|
|
|
build_style=configure
|
|
|
|
configure_args="--prefix=/usr"
|
2017-03-28 14:57:14 +00:00
|
|
|
make_build_args="LDLIBS=-lm LDLIBS+=${XBPS_CROSS_BASE}/usr/lib/libncursesw.a"
|
2017-03-28 10:18:55 +00:00
|
|
|
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"
|
2017-07-06 11:17:29 +00:00
|
|
|
checksum=5b127d71e0e1edd462b224322c01332819a38eaa442baad807283e139ee56e11
|
2017-03-28 10:18:55 +00:00
|
|
|
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
|
|
|
|
}
|