APKBUILD 1.66 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
pkgver=0.13
5
_ver=${pkgver/_/}
6
pkgrel=6
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
source="https://dev.alpinelinux.org/archive/elinks/elinks-$pkgver.tar.bz2
16
	musl-va_copy.patch
17
	ssl-Make-RAND_egd-optional.patch
18
	elinks-0.12pre6-openssl11.patch
19
	"
Natanael Copa's avatar
Natanael Copa committed
20

21
builddir="$srcdir"/elinks-0.13-20150624
22

Natanael Copa's avatar
Natanael Copa committed
23
prepare() {
24 25
	default_prepare
	update_config_sub
Natanael Copa's avatar
Natanael Copa committed
26 27 28
}

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

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

Carlo Landmeter's avatar
Carlo Landmeter committed
50
sha512sums="9dd7fb674ab914fccaf64b889f6fe3431f95abe1ae76f1df6155fbc89623ec921a4de5f30e896e94c77161c4b4638a29ec19b8e1fe4cbdebdc4666be024f8ed9  elinks-0.13.tar.bz2
51
56378b4744783e8a07c5e92f3f75cdb7edf7b26881eb033789d71612c3971b3a3c5ada5f02ec422391242cbceb64ff31a2be68298608ed6448c37056d6dedf40  musl-va_copy.patch
52
df3254ff429540cca66849e03cd6245bd3e82897225ba3bfea9a41ab222c0041e60c61784a9fd6f819b360b6168b6375a5455a97786ab656b24a8e1b4b96bda3  ssl-Make-RAND_egd-optional.patch
53
85e7a4e560a87ba641a04e3fce918cd0a2b52bd13b162f15950e4bb7d19a511f984d0891e3df1784cc8bb77a53f6c7ed6ffe56d7707d6b32a6676e21725893b9  elinks-0.12pre6-openssl11.patch"