aboutsummaryrefslogtreecommitdiffstats
path: root/main/elinks/APKBUILD
blob: e1832ebea23c9982d45651db3749786aa6f4f60d (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=elinks
pkgver=0.11.7
pkgrel=4
pkgdesc="a text mode web browser"
url="http://elinks.or.cz/"
arch="all"
license="GPL"
depends=
makedepends="bzip2-dev zlib-dev openssl-dev expat-dev libiconv-dev gettext-dev"
install=
subpackages="$pkgname-doc"
source="http://elinks.or.cz/download/elinks-$pkgver.tar.bz2
	elinks-0.12pre6-ssl-hostname.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	# we should not link lua with -llualib
        for i in $source; do
                case $i in
                *.patch)
                        msg "Applying $i"
                        patch -p1 -i "$srcdir"/$i || return 1
                        ;;
                esac
        done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-included-gettext
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	
	#fix conflict with gettext
	rm "$pkgdir"/usr/share/locale/locale.alias
}

md5sums="fcd087a6d2415cd4c6fd1db53dceb646  elinks-0.11.7.tar.bz2
2558da494a828c2fd3854f7ba9fce0b2  elinks-0.12pre6-ssl-hostname.patch"