mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 18:07:14 +08:00
e0b51f831e
libevent 2.0.22 lzo2 2.09
40 lines
949 B
Bash
40 lines
949 B
Bash
|
|
pkgname=lzo2
|
|
pkgver=2.09
|
|
pkgrel=1
|
|
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=('e2a60aca818836181e7e6f8c4f2c323aca6ac057')
|
|
|
|
build() {
|
|
cd "${srcdir}/lzo-${pkgver}"
|
|
|
|
./configure --prefix=/usr --enable-shared
|
|
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
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/lzo-${pkgver}"
|
|
make test # Larger test
|
|
make check
|
|
}
|
|
|
|
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
|
|
}
|