summaryrefslogblamecommitdiff
path: root/user/w3m/APKBUILD
blob: 1e4ed29b22d8684fef90d79db20234694a1abcd3 (plain) (tree)










































                                                                                                                                                              
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=w3m
pkgver=0.5.3
pkgrel=0
pkgdesc="Text-based Web browser"
url="http://w3m.sourceforge.net/"
arch="all"
options="!check"  # No test suite.
license="MIT AND X11"
depends="compface"
makedepends="compface-dev gc-dev gdk-pixbuf-dev glib-dev gtk+2.0-dev imlib2-dev
	libbsd-dev libx11-dev ncurses-dev openssl-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/w3m/w3m-$pkgver.tar.gz
	use-modern-gc.patch
	"

prepare() {
	cd "$builddir"
	default_prepare
	update_config_sub
}

build() {
	cd "$builddir"
	LIBS="-lX11 -ltinfo" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make funcname.tab
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="43508c76d07b4d8f19c19f975c0b870aeb94abf0744b6128ee01c759d4e409a8b57bc866baeaf990f309ff73e9a7b02ca455d272b1dd0a93fafb8c72b1fe6d14  w3m-0.5.3.tar.gz
d43f99e2277b0daabb6080b06b4e06af7a1b679da9203bad782ef57e137ca18d27b85ef7a0691aeb293bd3f6f00bd556d1fe021fed0b725b5b78b376671f1494  use-modern-gc.patch"