bmake: prepare for auto-create_wrksrc

This commit is contained in:
Đoàn Trần Công Danh 2022-10-23 20:27:36 +07:00
parent b2dc321283
commit 5d8726990e
1 changed files with 5 additions and 6 deletions

View File

@ -2,7 +2,7 @@
pkgname=bmake
version=20220928
revision=1
create_wrksrc=yes
wrksrc=bmake
short_desc="Portable version of the NetBSD make build tool"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
@ -12,7 +12,6 @@ checksum=c804b77de3feb8e31dee2a4c9fb1e9ec24c5a34764e7a2815c88b4ed01650e90
python_version=3
do_configure() {
cd bmake
vsed -i 's/op_test() {/& return 0;/' boot-strap
vsed -i '1s,:,#!/bin/sh,g' install-sh
if [ "$CROSS_BUILD" ]; then
@ -26,8 +25,8 @@ do_configure() {
}
do_build() {
mkdir -p bmake/bmake-build
cd bmake/bmake-build
mkdir -p bmake-build
cd bmake-build
if [ "$CROSS_BUILD" ]; then
_args="--host=${XBPS_CROSS_TRIPLET}"
fi
@ -35,9 +34,9 @@ do_build() {
}
do_install() {
cd bmake/bmake-build
cd bmake-build
if [ "$CROSS_BUILD" ]; then
vsed -i "s,^BMAKE=$,BMAKE=${wrksrc}/bmake/bmake-host/bmake," ../boot-strap
vsed -i "s,^BMAKE=$,BMAKE=${wrksrc}/bmake-host/bmake," ../boot-strap
fi
../boot-strap --prefix=/usr --install-destdir=${DESTDIR} op=install
rm -rf ${DESTDIR}/usr/share/man/cat1