summaryrefslogtreecommitdiffstats
path: root/testing/lynx/APKBUILD
blob: c2ebe03e70e000ac1b215ffb0f57a0f86b7da85c (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
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=lynx
pkgver=2.8.7
pkgrel=2
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${pkgver}rel.$pkgrel.tar.bz2"

_builddir="$srcdir/${pkgname}2-8-7"
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 --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="cb936aef812e4e463ab86cbbe14d4db9  lynx2.8.7rel.2.tar.bz2"