From 3e27efe48e8496b94a2d35cd1618851de382ddd0 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Mon, 6 Feb 2023 07:01:32 -0800 Subject: Updated to 0.5.3.git20230121 --- PKGBUILD | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 47586e6..5d195c4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,14 +6,17 @@ # Arch version lacks additional optimization and hardening flags pkgname=w3m -_gitcommit=30486718c5512fef115b01a235a05dad45d4328c -_pkgver=0.5.3.git20220409-1 +_gitcommit=fee038d7180e3d69276f55167a0d1da5233bc9c2 +_pkgver=0.5.3.git20230121-1 pkgver=${_pkgver/-/_} pkgrel=1 pkgdesc='Text-based Web browser as well as pager' url='https://salsa.debian.org/debian/w3m' license=('custom') arch=('x86_64') +# # For some reason this breaks compiling. "error: C++ compiler cannot create executables" +# # But old-fashioned raw injection of -flto=auto via export doesn't. +#options=(lto) makedepends=('git' 'imlib2') optdepends=('imlib2: for graphics support') depends=('openssl' 'gc' 'ncurses' 'gpm') @@ -24,28 +27,28 @@ sha256sums=('SKIP') # https://github.com/tats/w3m build() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/${pkgname}" export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=auto -fPIE" export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=auto -fPIE" export LDFLAGS="$LDFLAGS,-pie" - ./configure \ - --prefix=/usr \ - --libexecdir=/usr/lib \ - --enable-image=x11,fb \ - --with-imagelib=imlib2 \ - --with-termlib=ncurses \ - --disable-w3mmailer \ + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --enable-image=x11,fb \ + --with-imagelib=imlib2 \ + --with-termlib=ncurses \ + --disable-w3mmailer \ - make + make } package() { - cd "${srcdir}/${pkgname}" - make DESTDIR="${pkgdir}" install + cd "${srcdir}/${pkgname}" + make DESTDIR="${pkgdir}" install - install -d "${pkgdir}"/usr/share/{doc,licenses}/w3m - install -m644 doc/* "${pkgdir}/usr/share/doc/w3m" - ln -s ../../doc/w3m/README "${pkgdir}/usr/share/licenses/w3m" + install -d "${pkgdir}"/usr/share/{doc,licenses}/w3m + install -m644 doc/* "${pkgdir}/usr/share/doc/w3m" + ln -s ../../doc/w3m/README "${pkgdir}/usr/share/licenses/w3m" } -- cgit v1.2.1