mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/libdeflate: new aport
https://github.com/ebiggers/libdeflate Library for fast, whole-buffer DEFLATE-based compression and decompression
This commit is contained in:
parent
130e4ef12c
commit
0c130c0fcb
43
testing/libdeflate/APKBUILD
Normal file
43
testing/libdeflate/APKBUILD
Normal 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
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user