iglunix/pkgs/bmake/build.sh

37 lines
632 B
Bash
Raw Normal View History

2020-12-27 17:36:57 +00:00
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
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/
sh ./make-bootstrap.sh
}
package() {
cd $pkgname-$pkgver
./bmake -m ./mk install DESTDIR=$pkgdir
rm -r $pkgdir/share/man
}
package_doc() {
cd $pkgname-$pkgver
./bmake -m ./mk install DESTDIR=$pkgdir
rm -r $pkgdir/bin
rm -r $pkgdir/share/mk
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}