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
pkgver=0.13
5
_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"
Carlo Landmeter's avatar
Carlo Landmeter committed
15
source="http://dev.alpinelinux.org/archive/elinks/elinks-$pkgver.tar.bz2
16
	musl-va_copy.patch"
Natanael Copa's avatar
Natanael Copa committed
17

18 19
_builddir="$srcdir"/elinks-0.13-20150624

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

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

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

Carlo Landmeter's avatar
Carlo Landmeter committed
53
md5sums="b377364a3f467056dcc25c7e973cd031  elinks-0.13.tar.bz2
54
8e7c2deee72e1832adab563ba04214da  musl-va_copy.patch"
Carlo Landmeter's avatar
Carlo Landmeter committed
55
sha256sums="865493187f678a949c2e35fbd302bdc99fbcd9cce253392135928d6db351f705  elinks-0.13.tar.bz2
56
8beba82169662655aa075b9453334a14c87580282a1e5472fe89393b8b923020  musl-va_copy.patch"
Carlo Landmeter's avatar
Carlo Landmeter committed
57
sha512sums="9dd7fb674ab914fccaf64b889f6fe3431f95abe1ae76f1df6155fbc89623ec921a4de5f30e896e94c77161c4b4638a29ec19b8e1fe4cbdebdc4666be024f8ed9  elinks-0.13.tar.bz2
58
56378b4744783e8a07c5e92f3f75cdb7edf7b26881eb033789d71612c3971b3a3c5ada5f02ec422391242cbceb64ff31a2be68298608ed6448c37056d6dedf40  musl-va_copy.patch"