2020-12-30 22:26:26 +01:00
|
|
|
# Description: NetBSD make program
|
|
|
|
# URL: http://www.crufty.net/help/sjg/bmake.html
|
|
|
|
# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu
|
|
|
|
|
|
|
|
name=bmake
|
2022-04-04 17:51:21 +02:00
|
|
|
version=20220330
|
2021-02-13 23:19:30 +01:00
|
|
|
release=1
|
|
|
|
source=(http://www.crufty.net/ftp/pub/sjg/${name}-${version}.tar.gz)
|
2020-12-30 22:26:26 +01:00
|
|
|
|
|
|
|
build() {
|
2021-02-08 23:50:53 +01:00
|
|
|
cd ${name}
|
2020-12-30 22:26:26 +01:00
|
|
|
|
2022-02-10 17:27:18 +01:00
|
|
|
# The first block may only be broken in util-linux's unshare(1) which
|
|
|
|
# disables interrupts (busybox unshare(1) does not), the second is broken
|
|
|
|
# due to dash or whatever else
|
|
|
|
BROKEN_TESTS='\
|
|
|
|
cmd-interrupt \
|
|
|
|
deptgt-interrupt \
|
|
|
|
\
|
|
|
|
opt-debug-x-trace \
|
|
|
|
var-op-shell \
|
|
|
|
'
|
|
|
|
export BROKEN_TESTS
|
2021-06-25 23:23:34 +02:00
|
|
|
|
2020-12-30 22:26:26 +01:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
sh ../boot-strap --with-default-sys-path=/usr/share/mk
|
2021-06-25 23:23:34 +02:00
|
|
|
|
2020-12-30 22:26:26 +01:00
|
|
|
sh ../boot-strap --prefix=/usr \
|
|
|
|
--with-mksrc=/usr/share/mk \
|
2021-02-08 23:50:53 +01:00
|
|
|
--install-destdir="${PKG}" op=install
|
2020-12-30 22:26:26 +01:00
|
|
|
|
2021-02-08 23:50:53 +01:00
|
|
|
chmod g-w "${PKG}"/usr/bin "${PKG}"/usr/share/mk
|
|
|
|
rm -rf "${PKG}"/usr/share/man/cat1
|
|
|
|
mkdir "${PKG}"/usr/share/man/man1
|
|
|
|
cp ../bmake.1 "${PKG}"/usr/share/man/man1/
|
2020-12-30 22:26:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# s-sh-mode
|