40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'mk-configure'
|
|
pkgname=mk-configure
|
|
version=0.29.3
|
|
revision=1
|
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
|
build_style=gnu-makefile
|
|
make_cmd=bmake
|
|
make_build_args="PREFIX=/usr"
|
|
make_install_args="MANDIR=/usr/share/man"
|
|
make_check_target="test"
|
|
checkdepends="automake glib-devel groff pkg-config bison flex"
|
|
hostmakedepends="bmake bmkdep"
|
|
depends="bmake bmkdep"
|
|
short_desc="Lightweight replacement for GNU autotools"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD"
|
|
homepage="https://github.com/cheusov/mk-configure/archive/"
|
|
distfiles="https://github.com/cheusov/${pkgname}/archive/${pkgname}-${version}.tar.gz"
|
|
checksum=fbdbacb8eb04566890dd71c1e65226c9714a2557f7f6f3283f6e2a6bc22d4fa9
|
|
|
|
post_extract() {
|
|
rm -r tests/pkg_config_2 # different wording
|
|
rm -r tests/*lua*
|
|
rm -r examples/*lua*
|
|
rm -r examples/*lex*
|
|
}
|
|
pre_build() {
|
|
${make_cmd} all-scripts PROG.awk=/usr/bin/awk
|
|
}
|
|
pre_check() {
|
|
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
|
|
}
|