bmake: fix cross build

This commit is contained in:
Ella Stanforth 2022-04-21 10:16:53 +00:00
parent 07764545d1
commit 43bef18e61

View file

@ -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() {