APKBUILD 915 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3 4
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=elinks
pkgver=0.11.7
Ariadne Conill's avatar
Ariadne Conill committed
5
pkgrel=3
Natanael Copa's avatar
Natanael Copa committed
6 7
pkgdesc="a text mode web browser"
url="http://elinks.or.cz/"
8
arch="all"
Natanael Copa's avatar
Natanael Copa committed
9 10
license="GPL"
depends=
11
makedepends="bzip2-dev zlib-dev openssl-dev expat-dev libiconv-dev gettext-dev"
Natanael Copa's avatar
Natanael Copa committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
install=
subpackages="$pkgname-doc"
source="http://elinks.or.cz/download/elinks-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	# we should not link lua with -llualib
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
27 28
		--infodir=/usr/share/info \
		--without-included-gettext
Natanael Copa's avatar
Natanael Copa committed
29 30 31 32 33 34
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
35 36 37
	
	#fix conflict with gettext
	rm "$pkgdir"/usr/share/locale/locale.alias
Natanael Copa's avatar
Natanael Copa committed
38 39 40
}

md5sums="fcd087a6d2415cd4c6fd1db53dceb646  elinks-0.11.7.tar.bz2"