pkgname=lzo pkgver=2.10 pkgdesc="Portable lossless data compression library" arch=('x86_64') homepage="https://www.oberhumer.com/opensource/lzo" license=('GPL') sources=("${pkgname}-${pkgver}.tar.gz") urls=("https://www.oberhumer.com/opensource/lzo/download/${sources[0]}") md5sums=("39d3f3f9c55c87b1e5d6888e1420f4b5") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { ./configure --prefix=/usr \ --enable-shared \ --disable-static \ --docdir=/usr/share/doc/lzo-${pkgver} && make } src_check() { make check make test } src_install() { make DESTDIR="${pkgdir}" install }