iglunix/pkgs/bmake/build.sh
2021-01-12 11:06:46 +00:00

38 lines
740 B
Bash

pkgver=20201212
pkgname=bmake
bad=""
ext="doc"
fetch() {
curl http://www.crufty.net/ftp/pub/sjg/bmake-20201212.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
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
./bmake -m ./mk install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
rm -r $pkgdir/usr/share/mk
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}