1 # Maintainer: Anatol Pomozov
3 pkgname=aws-c-compression
6 pkgdesc='C99 implementation of huffman encoding/decoding'
8 url='https://github.com/awslabs/aws-c-compression'
10 depends=(aws-c-common)
12 source=(aws-c-compression-$pkgver.zip::https://github.com/awslabs/aws-c-compression/archive/v$pkgver.zip)
13 sha256sums=('a3434734637c94c3f516f0c91fb5ac13cd76faabcbdc574267e0cf903d9193d8')
16 cd aws-c-compression-$pkgver
18 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -S . -B build
23 cd aws-c-compression-$pkgver
24 cmake --build build --target test
28 cd aws-c-compression-$pkgver
30 cmake --build build --target install -- DESTDIR="$pkgdir/"
31 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"