bmake: fix cross build
This commit is contained in:
parent
07764545d1
commit
43bef18e61
1 changed files with 8 additions and 5 deletions
|
@ -1,7 +1,8 @@
|
||||||
pkgver=20211024
|
pkgver=20220303
|
||||||
pkgname=bmake
|
pkgname=bmake
|
||||||
mkdeps=""
|
mkdeps=""
|
||||||
deps=""
|
deps=""
|
||||||
|
auto_cross
|
||||||
|
|
||||||
fetch() {
|
fetch() {
|
||||||
curl http://www.crufty.net/ftp/pub/sjg/bmake-$pkgver.tar.gz -o $pkgname-$pkgver.tar.gz
|
curl http://www.crufty.net/ftp/pub/sjg/bmake-$pkgver.tar.gz -o $pkgname-$pkgver.tar.gz
|
||||||
|
@ -14,14 +15,16 @@ fetch() {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
./configure --prefix=/usr --with-default-sys-path=/usr/share/mk
|
./configure --prefix=/usr --with-default-sys-path=/usr/share/mk --build=$HOST_TRIPLE --host=$ARCH-linux-musl --with-machine-arch=$ARCH
|
||||||
sh ./make-bootstrap.sh
|
MANTARGET=man sh ./make-bootstrap.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
./bmake -m ./mk install DESTDIR=$pkgdir
|
bmake -m ./mk install -f Makefile DESTDIR=$pkgdir MANTARGET=man prefix=/usr/ BINDIR=/usr/bin
|
||||||
ln -sr $pkgdir/usr/bin/bmake $pkgdir/usr/bin/make
|
ln -s bmake $pkgdir/usr/bin/make
|
||||||
|
rm -rf $pkgdir/usr/share/man/cat1
|
||||||
|
install -Dm644 ./bmake.1 $pkgdir/usr/share/man/man1
|
||||||
}
|
}
|
||||||
|
|
||||||
backup() {
|
backup() {
|
||||||
|
|
Loading…
Reference in a new issue