aboutsummaryrefslogtreecommitdiffstats
path: root/main/less/APKBUILD
blob: 9d43dfac2d7c2ae3f39fb84682e8478f021835d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Cameron Banta <cbanta@gmail.com>
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=less
pkgver=487
pkgrel=0
pkgdesc="File pager"
url="http://www.greenwoodsoftware.com/less/"
arch="all"
license="GPL"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="http://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare || return 1

	cd "$builddir"
	chmod +x configure
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="d31274fdada570fbc6706d7c52637d1accbd18ce947ec062e10b1624c251a8533c6638bc3a1d89d3c70a0c7b9c6d45740598bec9003f281d64c587b1f829125a  less-487.tar.gz"