42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template file for 'mk-configure'
|
|
pkgname=mk-configure
|
|
version=0.34.0
|
|
revision=1
|
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
|
build_style=gnu-makefile
|
|
make_cmd=bmake
|
|
make_build_args="PREFIX=/usr"
|
|
make_install_args="${make_build_args} MANDIR=/usr/share/man"
|
|
make_check_target="test"
|
|
hostmakedepends="bmake bmkdep tar texinfo"
|
|
depends="bmake bmkdep"
|
|
checkdepends="automake glib-devel groff pkg-config bison flex"
|
|
short_desc="Lightweight replacement for GNU autotools"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-2-Clause, BSD-3-Clause"
|
|
homepage="https://github.com/cheusov/mk-configure/"
|
|
distfiles="https://github.com/cheusov/${pkgname}/archive/${pkgname}-${version}.tar.gz"
|
|
checksum=ec57a4dc4f8e2345eb977e947d31fcb40c78eccb97977876ccf92bef9b145142
|
|
disable_parallel_build=yes
|
|
|
|
post_extract() {
|
|
rm -r tests/pkg_config_2 # different wording
|
|
rm -r tests/*lua*
|
|
rm -r examples/*lua*
|
|
rm -r examples/*lex*
|
|
vsed -i -e 's/-Wabi//g' mk/mkc_imp.platform.sys.mk
|
|
}
|
|
pre_build() {
|
|
${make_cmd} all-scripts PROG.awk=/usr/bin/awk PREFIX=/usr
|
|
}
|
|
pre_check() {
|
|
unset CC CFLAGS CXXFLAGS
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
sed -i 's|Cannot allocate|Out of|g' examples/hello_errwarn/expect.out ;;
|
|
esac
|
|
}
|
|
post_install() {
|
|
vlicense doc/LICENSE
|
|
rm ${DESTDIR}/usr/share/doc/${pkgname}/LICENSE
|
|
}
|