2021-01-27 11:19:03 +00:00
|
|
|
pkgname=less
|
|
|
|
pkgver=563
|
2021-01-31 11:09:14 +00:00
|
|
|
deps="musl:netbsd-curses"
|
2021-01-27 11:19:03 +00:00
|
|
|
ext="doc"
|
|
|
|
|
|
|
|
fetch() {
|
|
|
|
curl "http://www.greenwoodsoftware.com/less/less-563.tar.gz" -o $pkgname-$pkgver.tar.xz
|
|
|
|
tar -xf $pkgname-$pkgver.tar.xz
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--build=x86_64-unknown-linux-musl \
|
|
|
|
--host=x86_64-unknown-linux-musl
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make install DESTDIR=$pkgdir
|
|
|
|
rm -r $pkgdir/usr/share
|
|
|
|
}
|
|
|
|
|
|
|
|
package_doc() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make install DESTDIR=$pkgdir
|
|
|
|
rm -r $pkgdir/usr/bin
|
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|