APKBUILD 1.15 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=elinks
4 5 6
pkgver=0.12_pre6
_ver=${pkgver/_/}
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
7 8
pkgdesc="a text mode web browser"
url="http://elinks.or.cz/"
9
arch="all"
Natanael Copa's avatar
Natanael Copa committed
10 11
license="GPL"
depends=
12
makedepends="bzip2-dev zlib-dev openssl-dev expat-dev libiconv-dev gettext-dev"
Natanael Copa's avatar
Natanael Copa committed
13
install=
14 15
subpackages="$pkgname-doc $pkgname-lang"
source="http://elinks.or.cz/download/elinks-$_ver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
16

17
_builddir="$srcdir"/$pkgname-$_ver
Natanael Copa's avatar
Natanael Copa committed
18 19 20 21 22 23 24 25 26
prepare() {
	cd "$_builddir"
}

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 41 42
md5sums="3d0962f4b65fb039342fefd3ada050a9  elinks-0.12pre6.tar.bz2"
sha256sums="383646375b8a325bef5a132c8300caab90eb0b842c5f8eff68febc00e29acada  elinks-0.12pre6.tar.bz2"
sha512sums="bff70faafea7c4739695a7fad8f659109894b318588f5a035a5594a6053238789259ce6067c2f5cb97448f138db143adebb23f84bf689bea209ba37573484b7f  elinks-0.12pre6.tar.bz2"