iglunix/pkgs/bmake/build.sh
2021-06-06 01:50:29 +01:00

36 lines
750 B
Bash

pkgver=20210420
pkgname=bmake
bad="musl"
ext="doc"
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
rm -r $pkgdir/usr/share/man
}
package_doc() {
cd $pkgname-$pkgver
install -Dm644 ./bmake.1 $pkgdir/usr/share/man/man1/bmake.1
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}