diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2023-02-06 07:01:32 -0800 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2023-02-06 07:01:32 -0800 |
commit | 3e27efe48e8496b94a2d35cd1618851de382ddd0 (patch) | |
tree | ba04ca90452dbb85f8e33bc3ab0d1b64eb8d1c25 | |
parent | Updated to 0.5.3.git20220409-1 (diff) | |
download | w3m-3e27efe48e8496b94a2d35cd1618851de382ddd0.tar.xz |
Updated to 0.5.3.git20230121
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 19 insertions, 16 deletions
@@ -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" } |