[arch-commits] Commit in links/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Sat May 4 20:34:09 EDT 2013


    Date: Sunday, May 5, 2013 @ 02:34:09
  Author: eric
Revision: 184252

upgpkg: links 2.7-2

Rebuild against libpng 1.6

Modified:
  links/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-05 00:17:53 UTC (rev 184251)
+++ PKGBUILD	2013-05-05 00:34:09 UTC (rev 184252)
@@ -3,13 +3,13 @@
 
 pkgname=links
 pkgver=2.7
-pkgrel=1
+pkgrel=2
 pkgdesc="A text WWW browser, similar to Lynx"
 arch=('i686' 'x86_64')
 url="http://links.twibright.com/"
 license=('GPL')
-depends=('bzip2' 'xz' 'zlib' 'openssl' 'gpm')
-makedepends=('libtiff' 'libpng' 'libxt')
+depends=('bzip2' 'xz' 'openssl' 'gpm')
+makedepends=('libtiff' 'libpng' 'libxt' 'optipng')
 optdepends=('libx11: for using xlinks' 'libtiff: for using xlinks' 'libpng: for using xlinks')
 provides=('links-g')
 conflicts=('links-g')
@@ -18,8 +18,14 @@
 sha1sums=('1e362a7e27078d630edf5868145a46247cda8cc3'
           'f600e27c2a71184444f7dd07a10230aa44463a02')
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" configure
+  optipng graphics/font/century_school-medium-roman-serif-vari/045e.png
+}
+
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${pkgname}-${pkgver}
   (cd intl; ./gen-intl; ./synclang)
   ./configure --prefix=/usr --mandir=/usr/share/man --enable-javascript \
     --enable-graphics --with-x --with-fb
@@ -32,7 +38,7 @@
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${pkgname}-${pkgver}
   make DESTDIR="${pkgdir}" install
 
   install -m755 xlinks "${pkgdir}/usr/bin/xlinks"



More information about the arch-commits mailing list