1 # Contributor: Low Kian Seong <fastmail_low@speedymail.org>
2 # Maintainer: dorphell <dorphell@archlinux.org>
7 pkgdesc="Portable lossless data compression library"
9 url="https://www.oberhumer.com/opensource/lzo"
12 provides=('liblzo2.so' 'libminilzo.so')
13 source=(https://www.oberhumer.com/opensource/lzo/download/lzo-${pkgver}.tar.gz)
14 sha256sums=('c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072')
18 ./configure --prefix=/usr --enable-shared
22 gcc $CPPFLAGS $CFLAGS -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c
23 gcc $LDFLAGS -shared -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o
28 make test # Larger test
34 make DESTDIR="${pkgdir}" install
37 install -m 755 libminilzo.so.0 "${pkgdir}"/usr/lib
38 install -p -m 644 minilzo/minilzo.h ${pkgdir}/usr/include/lzo
39 cd "${pkgdir}"/usr/lib
40 ln -s libminilzo.so.0 libminilzo.so