blob: cbce6502ec87d0c1873a310e115acf1b38818dfb (
plain)
1 # Description: Heavily optimized library for DEFLATE/zlib/gzip compression and decompression
2 # URL: https://github.com/ebiggers/libdeflate
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on:
5
6 name=libdeflate
7 version=1.16
8 release=1
9 source=(https://github.com/ebiggers/libdeflate/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-$version -B build -G Ninja \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_INSTALL_LIBDIR=lib \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
17 -Wno-dev
18
19 cmake --build build
20 DESTDIR=$PKG cmake --install build
21 }
|