summaryrefslogtreecommitdiffstats
path: root/abs/core/lzo2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/lzo2/PKGBUILD')
-rw-r--r--abs/core/lzo2/PKGBUILD32
1 files changed, 23 insertions, 9 deletions
diff --git a/abs/core/lzo2/PKGBUILD b/abs/core/lzo2/PKGBUILD
index 8474e99..dd0c5e6 100644
--- a/abs/core/lzo2/PKGBUILD
+++ b/abs/core/lzo2/PKGBUILD
@@ -1,22 +1,36 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# $Id: PKGBUILD 136471 2011-08-30 06:25:43Z tpowa $
# Contributor: Low Kian Seong <fastmail_low@speedymail.org>
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=lzo2
-pkgver=2.03
+pkgver=2.06
pkgrel=1
-pkgdesc="a portable lossless data compression library written in ANSI C"
-arch=(i686 x86_64)
+pkgdesc="Portable lossless data compression library"
+arch=('i686' 'x86_64')
url="http://www.oberhumer.com/opensource/lzo"
license=('GPL')
-groups=('base')
depends=('glibc')
source=(http://www.oberhumer.com/opensource/lzo/download/lzo-${pkgver}.tar.gz)
options=(!libtool)
+md5sums=('95380bd4081f85ef08c5209f4107e9f8')
build() {
- cd ${startdir}/src/lzo-${pkgver}
+ cd "${srcdir}/lzo-${pkgver}"
+
./configure --prefix=/usr --enable-shared
- make || return 1
- make DESTDIR=${startdir}/pkg install
+ make
+
+ # 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
+}
+
+package() {
+ cd "${srcdir}/lzo-${pkgver}"
+ make DESTDIR=${pkgdir} install
+
+ # install minilzo
+ install -m 755 libminilzo.so.0 ${pkgdir}/usr/lib
+ install -p -m 644 minilzo/minilzo.h ${pkgdir}/usr/include/lzo
+ cd ${pkgdir}/usr/lib
+ ln -s libminilzo.so.0 libminilzo.so
}
-md5sums=('0c3d078c2e8ea5a88971089a2f02a726')