2021-06-06 00:50:29 +00:00
|
|
|
pkgver=20210420
|
2020-12-27 17:36:57 +00:00
|
|
|
pkgname=bmake
|
2021-01-31 11:09:14 +00:00
|
|
|
bad="musl"
|
2020-12-27 17:36:57 +00:00
|
|
|
ext="doc"
|
|
|
|
|
|
|
|
fetch() {
|
2021-01-31 11:09:14 +00:00
|
|
|
curl http://www.crufty.net/ftp/pub/sjg/bmake-$pkgver.tar.gz -o $pkgname-$pkgver.tar.gz
|
2020-12-27 17:36:57 +00:00
|
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
|
|
|
mv $pkgname $pkgname-$pkgver
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
patch ./boot-strap < ../../no-test.patch
|
2021-01-12 11:06:46 +00:00
|
|
|
patch ./install-sh < ../../install.patch
|
2020-12-27 17:36:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-01-31 11:09:14 +00:00
|
|
|
./configure --prefix=/usr --with-default-sys-path=/usr/share/mk
|
2020-12-27 17:36:57 +00:00
|
|
|
sh ./make-bootstrap.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./bmake -m ./mk install DESTDIR=$pkgdir
|
2021-01-12 11:06:46 +00:00
|
|
|
ln -sr $pkgdir/usr/bin/bmake $pkgdir/usr/bin/make
|
|
|
|
rm -r $pkgdir/usr/share/man
|
2020-12-27 17:36:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_doc() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-06-06 00:50:29 +00:00
|
|
|
install -Dm644 ./bmake.1 $pkgdir/usr/share/man/man1/bmake.1
|
2020-12-27 17:36:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|