| Name |
lzo |
| Description |
Portable lossless data compression library |
| Version |
2.10-5 |
| Package Base |
lzo |
| Homepage |
https://www.oberhumer.com/opensource/lzo |
| Maintainers |
['Felix Yan <felixonmars@archlinux.org>', 'dorphell <dorphell@archlinux.org>'] |
| Contributors |
['Low Kian Seong <fastmail_low@speedymail.org>'] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/lzo |
| Sources |
['https://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz'] |
| Dependencies |
['glibc'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
[] |
| Provides |
['liblzo2.so', 'libminilzo.so'] |
| Builddate |
27-12-2022 14:21:20 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['GPL'] |
| Hash |
dd5ec871aea5ddfd38d4a25539e966dc05e75d6969ebc31917c8d25b97ccd69e |
# Contributor: Low Kian Seong <fastmail_low@speedymail.org>
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=lzo
pkgver=2.10
pkgrel=5
pkgdesc="Portable lossless data compression library"
arch=('x86_64')
url="https://www.oberhumer.com/opensource/lzo"
license=('GPL')
depends=('glibc')
provides=('liblzo2.so' 'libminilzo.so')
source=(https://www.oberhumer.com/opensource/lzo/download/lzo-${pkgver}.tar.gz)
sha256sums=('c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072')
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
}