aboutsummaryrefslogtreecommitdiffstats
path: root/main/lynx/APKBUILD
blob: 234a503e3f8e45425b1a39e27dab0b146f61976a (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=lynx
pkgver=2.8.7_p1
pkgrel=0
_d=${pkgver//./-}
_d=${_d%_*}
_ver=${pkgver/_p/rel.}
pkgdesc="Cross-platform text-based browser"
url="http://lynx.isc.org"
arch="all"
license="GPL"
depends=
makedepends="openssl-dev gettext zlib-dev glib-dev perl pkgconfig ncurses-dev"
install=""
subpackages="$pkgname-doc"
source="http://lynx.isc.org/current/$pkgname${_ver}.tar.bz2"

_builddir="$srcdir/${pkgname}${_d}"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

doc() {
	cd "$_builddir"
	install -Dm644 docs/* "$subpkgdir"/usr/share/doc/$pkgname
	mv "$pkgdir"/usr/man/ "$subpkgdir"/usr/share/
}

md5sums="493af4c77ef6761e3f0157cd1be033a0  lynx2.8.7rel.1.tar.bz2"
sha256sums="40ec9774deb4a7acf69e1bcfb5e272a3857ccc17e20d923255d64cb5dbe55dad  lynx2.8.7rel.1.tar.bz2"
sha512sums="7eba63001a028d6ce7d8d910efb8bcd3e7c48d8fe83103d8272270bb8be2ae56e5ec7a3b25cb64eee066bcf91a5b37a5c7bfa9adffe2cb00b6b34fe7f8a8c7fd  lynx2.8.7rel.1.tar.bz2"