iglunix/base/bmake/build.sh
2021-12-26 12:40:14 +00:00

34 lines
642 B
Bash

pkgver=20211024
pkgname=bmake
mkdeps=""
deps=""
fetch() {
curl http://www.crufty.net/ftp/pub/sjg/bmake-$pkgver.tar.gz -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
mv $pkgname $pkgname-$pkgver
cd $pkgname-$pkgver
patch ./boot-strap < ../../no-test.patch
patch ./install-sh < ../../install.patch
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --with-default-sys-path=/usr/share/mk
sh ./make-bootstrap.sh
}
package() {
cd $pkgname-$pkgver
./bmake -m ./mk install DESTDIR=$pkgdir
ln -sr $pkgdir/usr/bin/bmake $pkgdir/usr/bin/make
}
backup() {
return
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}