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

Allan McRae allan at archlinux.org
Thu Oct 28 03:49:53 UTC 2010


    Date: Wednesday, October 27, 2010 @ 23:49:53
  Author: allan
Revision: 97242

upgpkg: xplc 0.3.13-2
fix dangling man page symlink

Modified:
  xplc/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-10-28 03:44:25 UTC (rev 97241)
+++ PKGBUILD	2010-10-28 03:49:53 UTC (rev 97242)
@@ -13,10 +13,16 @@
 
 build() {
   cd $srcdir/$pkgname-$pkgver
-  ./configure --prefix=/usr --mandir=/usr/share/man --without-libuuid || return 1
-  make || return 1
-  make DESTDIR=$pkgdir install || return 1
-  ln -sf uuidgen.1.gz $pkgdir/usr/share/man/man1/uuidcdef.1
+  
+  export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
+  
+  ./configure --prefix=/usr --mandir=/usr/share/man --without-libuuid
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+  mv $pkgdir/usr/share/man/man1/{uuidgen.1,uuidcdef.1}
   rm -f $pkgdir/usr/bin/uuidgen
-  rm -f $pkgdir/usr/share/man/man1/uuidgen.1
 }




More information about the arch-commits mailing list