APKBUILD 1.79 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=5
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 libressl-dev expat-dev gettext-dev"
Natanael Copa's avatar
Natanael Copa committed
13
install=
14
subpackages="$pkgname-doc $pkgname-lang"
Carlo Landmeter's avatar
Carlo Landmeter committed
15
source="http://dev.alpinelinux.org/archive/elinks/elinks-$pkgver.tar.bz2
16
	musl-va_copy.patch
17 18 19
	ssl-Make-RAND_egd-optional.patch
	libressl-2.5.patch
	"
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
	cd "$builddir"
25 26 27 28 29
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
30
	update_config_sub || return 1
Natanael Copa's avatar
Natanael Copa committed
31 32 33
}

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

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

Carlo Landmeter's avatar
Carlo Landmeter committed
56
sha512sums="9dd7fb674ab914fccaf64b889f6fe3431f95abe1ae76f1df6155fbc89623ec921a4de5f30e896e94c77161c4b4638a29ec19b8e1fe4cbdebdc4666be024f8ed9  elinks-0.13.tar.bz2
57
56378b4744783e8a07c5e92f3f75cdb7edf7b26881eb033789d71612c3971b3a3c5ada5f02ec422391242cbceb64ff31a2be68298608ed6448c37056d6dedf40  musl-va_copy.patch
58 59
df3254ff429540cca66849e03cd6245bd3e82897225ba3bfea9a41ab222c0041e60c61784a9fd6f819b360b6168b6375a5455a97786ab656b24a8e1b4b96bda3  ssl-Make-RAND_egd-optional.patch
6aa70bb8ddf1fb57b2e52ccc9b75d08731e8423f60f60aba31fcba879fbf3758208b0079b9204e2351380483c991ea39bddcc7f426d89fe18971390a01cae79d  libressl-2.5.patch"