diff --git a/base/bmake/build.sh b/base/bmake/build.sh index ead906d..0b393a5 100644 --- a/base/bmake/build.sh +++ b/base/bmake/build.sh @@ -1,7 +1,8 @@ -pkgver=20211024 +pkgver=20220303 pkgname=bmake mkdeps="" deps="" +auto_cross fetch() { curl http://www.crufty.net/ftp/pub/sjg/bmake-$pkgver.tar.gz -o $pkgname-$pkgver.tar.gz @@ -14,14 +15,16 @@ fetch() { build() { cd $pkgname-$pkgver - ./configure --prefix=/usr --with-default-sys-path=/usr/share/mk - sh ./make-bootstrap.sh + ./configure --prefix=/usr --with-default-sys-path=/usr/share/mk --build=$HOST_TRIPLE --host=$ARCH-linux-musl --with-machine-arch=$ARCH + MANTARGET=man sh ./make-bootstrap.sh } package() { cd $pkgname-$pkgver - ./bmake -m ./mk install DESTDIR=$pkgdir - ln -sr $pkgdir/usr/bin/bmake $pkgdir/usr/bin/make + bmake -m ./mk install -f Makefile DESTDIR=$pkgdir MANTARGET=man prefix=/usr/ BINDIR=/usr/bin + ln -s bmake $pkgdir/usr/bin/make + rm -rf $pkgdir/usr/share/man/cat1 + install -Dm644 ./bmake.1 $pkgdir/usr/share/man/man1 } backup() {