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

Tobias Powalowski tpowa at archlinux.org
Sat Oct 29 02:28:44 EDT 2011


    Date: Saturday, October 29, 2011 @ 02:28:43
  Author: tpowa
Revision: 141309

add check function

Modified:
  lzo2/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-29 06:26:33 UTC (rev 141308)
+++ PKGBUILD	2011-10-29 06:28:43 UTC (rev 141309)
@@ -3,7 +3,7 @@
 # Maintainer: dorphell <dorphell at archlinux.org>
 pkgname=lzo2
 pkgver=2.06
-pkgrel=1
+pkgrel=2
 pkgdesc="Portable lossless data compression library"
 arch=('i686' 'x86_64')
 url="http://www.oberhumer.com/opensource/lzo"
@@ -21,9 +21,15 @@
 
   # build minilzo
   gcc $CFLAGS -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c
-  gcc -g -shared -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o
+  gcc $LDFLAGS -shared -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o
 }
 
+check() {
+  cd "${srcdir}/lzo-${pkgver}"
+  make test # Larger test
+  make check
+}
+
 package() {
   cd "${srcdir}/lzo-${pkgver}"
   make DESTDIR=${pkgdir} install



More information about the arch-commits mailing list