summaryrefslogtreecommitdiff
path: root/user/felinks/APKBUILD
blob: 3b9e18055379ceb9794b584d429247102cc817c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Nathan <ndowens@artixlinux.org>
# Maintainer: Zach van Rijn <me@zv.io>
# Maintainer: ZZZ
pkgname=felinks
pkgver=0.13.5
pkgrel=0
pkgdesc="A text mode web browser"
url="https://github.com/rkd77/felinks"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="autoconf automake bzip2-dev gettext-tiny openssl-dev zlib-dev"
subpackages="$pkgname-doc $pkgname-lang"
#source="$pkgname-$pkgver.tar.gz::https://github.com/rkd77/felinks/archive/v$pkgver.tar.gz
source="https://distfiles.adelielinux.org/source/upstream/$pkgname-$pkgver.tar.gz
	gettext-tiny.patch
	"

prepare() {
	default_prepare
	update_config_sub
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-nls
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/lib/charset.alias
	rm -rf "$pkgdir"/usr/lib
}

sha512sums="786f6142c03bca4a47a1043ca4f9c36aab431d192eb13bcad14c1da391f5746779a8f65e53eb781dff79f619ceb3ed30ef939eae8d81f64251fad9b803c0ae7b  felinks-0.13.5.tar.gz
327a3b3193d1ddac891e5c46caf11a3dd946ca0a49d214a61303733eddb3e181c73a8b8d78962dc6e589b9401c7e56698154acade4d321515145cc85db834195  gettext-tiny.patch"