Date: Wednesday, November 7, 2018 @ 00:21:58 Author: allan Revision: 338018
archrelease: copy trunk to testing-x86_64 Added: lzo/repos/testing-x86_64/ lzo/repos/testing-x86_64/PKGBUILD (from rev 338017, lzo/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: lzo/repos/testing-x86_64/PKGBUILD (from rev 338017, lzo/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2018-11-07 00:21:58 UTC (rev 338018) @@ -0,0 +1,40 @@ +# Contributor: Low Kian Seong <fastmail_...@speedymail.org> +# Maintainer: dorphell <dorph...@archlinux.org> + +pkgname=lzo +pkgver=2.10 +pkgrel=2 +pkgdesc="Portable lossless data compression library" +arch=('x86_64') +url="http://www.oberhumer.com/opensource/lzo" +license=('GPL') +depends=('glibc') +source=(http://www.oberhumer.com/opensource/lzo/download/lzo-${pkgver}.tar.gz) +sha1sums=('4924676a9bae5db58ef129dc1cebce3baa3c4b5d') + +build() { + cd lzo-${pkgver} + ./configure --prefix=/usr --enable-shared + make + + # build minilzo + gcc $CPPFLAGS $CFLAGS -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c + gcc $LDFLAGS -shared -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o +} + +check() { + cd lzo-${pkgver} + make test # Larger test + make check +} + +package() { + cd 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 +}