testing/libdeflate: new aport

https://github.com/ebiggers/libdeflate
Library for fast, whole-buffer DEFLATE-based compression and decompression
This commit is contained in:
Holger Jaekel 2021-08-01 16:00:16 +02:00 committed by Leo
parent 130e4ef12c
commit 0c130c0fcb

View File

@ -0,0 +1,43 @@
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=libdeflate
pkgver=1.8
pkgrel=0
pkgdesc="Library for fast, whole-buffer DEFLATE-based compression and decompression"
url="https://github.com/ebiggers/libdeflate"
arch="all"
license="MIT"
checkdepends="
zlib-dev
"
subpackages="
$pkgname-dev
$pkgname-utils
"
source="
libdeflate-$pkgver.tar.gz::https://github.com/ebiggers/libdeflate/archive/v$pkgver.tar.gz
"
# Build fails with Os, so we are using O2
export CFLAGS="$CFLAGS -O2"
build() {
make PREFIX=/usr USE_SHARED_LIB=1 gunzip
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" PREFIX=/usr USE_SHARED_LIB=1 install
rm "$pkgdir"/usr/lib/libdeflate.a
}
utils() {
pkgdesc="Command line utilities for the DEFLATE library"
amove /usr/bin
}
sha512sums="
b40caecdf783487488a5bd8213304175348b9db9bc1efdf6d5222fb912f61698b5e196522195a3640d7ff61ba953a93c0c8f75e07f548ac8b9d9c5dd5a787544 libdeflate-1.8.tar.gz
"