ksh: update to 1.0.0.beta.2.
Revert to the maintained fork "ksh93u+m".
This commit is contained in:
parent
6c754025df
commit
265104d103
|
@ -1,16 +1,15 @@
|
||||||
# Template file for 'ksh'
|
# Template file for 'ksh'
|
||||||
pkgname=ksh
|
pkgname=ksh
|
||||||
version=2020.0.0
|
reverts="2020.0.0_1"
|
||||||
|
version=1.0.0.beta.2
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="ast-${version}"
|
wrksrc="ksh-${version/.beta/-beta}"
|
||||||
build_style=meson
|
short_desc="AT&T's Korn shell (community branch ksh93u+m)"
|
||||||
configure_args="-Dbuild-api-tests=false -Dbuild-api-tests-only=true"
|
|
||||||
short_desc="AT&T's Korn shell (ksh93)"
|
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="EPL-1.0"
|
license="EPL-1.0"
|
||||||
homepage="http://www.kornshell.com/"
|
homepage="https://github.com/ksh93/ksh"
|
||||||
distfiles="https://github.com/att/ast/archive/${version}.tar.gz"
|
distfiles="https://github.com/ksh93/ksh/archive/v${version/.beta/-beta}.tar.gz"
|
||||||
checksum=76597c96c4f94423b9225b5de50ea54be08d5bbaa1e0e594a7eec603bd60ecaf
|
checksum=d8678d23c3c9633a03e4fc895e604cdd0af2ff006d0268579b3a29beddfb8463
|
||||||
nocross=yes
|
nocross=yes
|
||||||
|
|
||||||
register_shell="/bin/ksh"
|
register_shell="/bin/ksh"
|
||||||
|
@ -24,25 +23,20 @@ if [ "$build_option_static" ]; then
|
||||||
LDFLAGS+=" -static"
|
LDFLAGS+=" -static"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
do_build() {
|
||||||
*-musl)
|
bin/package make CCFLAGS="$CFLAGS" NPROC="$XBPS_MAKEJOBS"
|
||||||
makedepends+=" musl-fts-devel"
|
}
|
||||||
esac
|
do_check() {
|
||||||
|
# run inside own pty
|
||||||
|
script -qfc bin/shtests /dev/null
|
||||||
|
}
|
||||||
|
do_install() {
|
||||||
|
vlicense LICENSE.md LICENSE
|
||||||
|
|
||||||
post_extract() {
|
cd arch/*/
|
||||||
sed -i -e 's/= library/= static_library/' \
|
vbin bin/ksh ksh93
|
||||||
-e 's/install: true/install: false/' src/lib/*/meson.build
|
vbin bin/shcomp
|
||||||
sed -i 's/vpoi/void*/g' src/cmd/ksh93/include/name.h
|
|
||||||
if [ "$build_option_static" ]; then
|
|
||||||
# Drop tests that use .so
|
|
||||||
sed -i '/some tests/,$d' src/cmd/ksh93/meson.build
|
|
||||||
sed -i '/libsample_files/,$d' src/lib/libdll/meson.build
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
post_install() {
|
|
||||||
mv ${DESTDIR}/usr/bin/ksh ${DESTDIR}/usr/bin/ksh93
|
|
||||||
mv ${DESTDIR}/usr/share/man/man1/ksh.1 ${DESTDIR}/usr/share/man/man1/ksh93.1
|
|
||||||
vmkdir usr/share/ksh
|
vmkdir usr/share/ksh
|
||||||
vcopy src/cmd/ksh93/fun usr/share/ksh/functions
|
vcopy fun usr/share/ksh/functions
|
||||||
vlicense LICENSE
|
vman man/man1/sh.1 ksh93.1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue