iglunix/pkgs/heirloom-doctools/build.sh

38 lines
584 B
Bash
Raw Normal View History

2021-01-17 19:15:45 +00:00
pkgver=master
pkgname=heirloom-doctools
pkgrel=1
2021-01-31 11:09:14 +00:00
deps="musl"
2021-01-17 19:15:45 +00:00
bad="gmake"
ext="doc"
fetch() {
curl -L "https://github.com/n-t-roff/heirloom-doctools/archive/master.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
cp ../../mk.config .
}
build() {
cd $pkgname-$pkgver
2021-01-27 11:28:31 +00:00
./configure
2021-01-17 19:15:45 +00:00
gmake
}
package() {
cd $pkgname-$pkgver
gmake install ROOT=$pkgdir
rm -r $pkgdir/usr/share
}
package_doc() {
cd $pkgname-$pkgver
gmake install ROOT=$pkgdir
rm -r $pkgdir/usr/lib
rm -r $pkgdir/usr/bin
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}