From 56effcb9deacbf975a0edc73a51c94584f2116e2 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Tue, 7 Aug 2012 14:06:13 -0500 Subject: w3m 0.5.3 --- abs/core/w3m/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++ abs/core/w3m/https-segfault.patch | 19 +++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 abs/core/w3m/PKGBUILD create mode 100644 abs/core/w3m/https-segfault.patch diff --git a/abs/core/w3m/PKGBUILD b/abs/core/w3m/PKGBUILD new file mode 100644 index 0000000..438d25c --- /dev/null +++ b/abs/core/w3m/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 149346 2012-02-07 01:25:49Z bisson $ +# Contributor: dorphell +# Maintainer: Gaetan Bisson + +pkgname=w3m +pkgver=0.5.3 +pkgrel=3 +pkgdesc='Text-based Web browser, as well as pager' +url='http://w3m.sourceforge.net/' +license=('custom') +arch=('i686' 'x86_64') +makedepends=('imlib2') +optdepends=('imlib2: for graphics support') +depends=('openssl' 'gc' 'ncurses') +source=("http://downloads.sourceforge.net/sourceforge/w3m/${pkgname}-${pkgver}.tar.gz" + 'https-segfault.patch') +sha1sums=('444b6c8cf7094ee95f8e9de96b37f814b9d83237' + '66affb2f695fe0bdde25cf774642bfd6a9404e88') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + sed 's/file_handle/file_handle_rofl/g' -i istream.* + patch -p1 -i ../https-segfault.patch + + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --enable-image=x11,fb \ + --with-imagelib=imlib2 \ + --with-termlib=ncurses \ + --disable-w3mmailer \ + --disable-mouse \ + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -d "${pkgdir}"/usr/share/{doc,licenses}/"${pkgname}" + find doc/* | grep -v CVS | xargs -i install "{}" "${pkgdir}/usr/share/doc/${pkgname}" + ln -s ../../doc/"${pkgname}"/README "${pkgdir}/usr/share/licenses/${pkgname}" +} diff --git a/abs/core/w3m/https-segfault.patch b/abs/core/w3m/https-segfault.patch new file mode 100644 index 0000000..31286a7 --- /dev/null +++ b/abs/core/w3m/https-segfault.patch @@ -0,0 +1,19 @@ +Fedora patch; see https://bugzilla.redhat.com/show_bug.cgi?id=707994 + +--- old/url.c 2011-01-04 14:52:24.000000000 +0530 ++++ new/url.c 2011-09-02 18:25:43.305652690 +0530 +@@ -82,11 +82,11 @@ + {"ftp", SCM_FTP}, + {"local", SCM_LOCAL}, + {"file", SCM_LOCAL}, +- /* {"exec", SCM_EXEC}, */ ++ {"exec", SCM_EXEC}, + {"nntp", SCM_NNTP}, +- /* {"nntp", SCM_NNTP_GROUP}, */ ++ {"nntp", SCM_NNTP_GROUP}, + {"news", SCM_NEWS}, +- /* {"news", SCM_NEWS_GROUP}, */ ++ {"news", SCM_NEWS_GROUP}, + {"data", SCM_DATA}, + #ifndef USE_W3MMAILER + {"mailto", SCM_MAILTO}, -- cgit v0.12