APKBUILD 1.72 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
pkgver=0.12_pre6
_ver=${pkgver/_/}
6
pkgrel=1
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 gettext-dev"
Natanael Copa's avatar
Natanael Copa committed
13
install=
14
subpackages="$pkgname-doc $pkgname-lang"
15 16
source="http://elinks.or.cz/download/elinks-$_ver.tar.bz2
	musl-va_copy.patch"
Natanael Copa's avatar
Natanael Copa committed
17

18
_builddir="$srcdir"/$pkgname-$_ver
Natanael Copa's avatar
Natanael Copa committed
19 20
prepare() {
	cd "$_builddir"
21 22 23 24 25
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
26
	update_config_sub || return 1
Natanael Copa's avatar
Natanael Copa committed
27 28 29 30
}

build() {
	cd "$_builddir"
31 32 33 34
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
35 36
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
37
		--infodir=/usr/share/info \
38 39
		--without-included-gettext \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
40 41 42 43 44
	make || return 1
}

package() {
	cd "$_builddir"
45 46 47
	make DESTDIR="$pkgdir" install || return 1
	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null
48 49
	#fix conflict with gettext
	rm "$pkgdir"/usr/share/locale/locale.alias
Natanael Copa's avatar
Natanael Copa committed
50 51
}

52 53 54 55 56 57
md5sums="3d0962f4b65fb039342fefd3ada050a9  elinks-0.12pre6.tar.bz2
8e7c2deee72e1832adab563ba04214da  musl-va_copy.patch"
sha256sums="383646375b8a325bef5a132c8300caab90eb0b842c5f8eff68febc00e29acada  elinks-0.12pre6.tar.bz2
8beba82169662655aa075b9453334a14c87580282a1e5472fe89393b8b923020  musl-va_copy.patch"
sha512sums="bff70faafea7c4739695a7fad8f659109894b318588f5a035a5594a6053238789259ce6067c2f5cb97448f138db143adebb23f84bf689bea209ba37573484b7f  elinks-0.12pre6.tar.bz2
56378b4744783e8a07c5e92f3f75cdb7edf7b26881eb033789d71612c3971b3a3c5ada5f02ec422391242cbceb64ff31a2be68298608ed6448c37056d6dedf40  musl-va_copy.patch"