* add aws-c-compression

This commit is contained in:
Alexander Baldeck 2025-02-07 11:46:34 +01:00
parent 3d637538b1
commit d0fad7a094
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,18 @@
pkgbase = aws-c-compression
pkgdesc = C99 implementation of huffman encoding/decoding
pkgver = 0.3.1
pkgrel = 1
url = https://github.com/awslabs/aws-c-compression
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = Apache-2.0
makedepends = cmake
depends = aws-c-common
depends = glibc
source = aws-c-compression-0.3.1.tar.gz::https://github.com/awslabs/aws-c-compression/archive/v0.3.1.tar.gz
sha256sums = d89fca17a37de762dc34f332d2da402343078da8dbd2224c46a11a88adddf754
pkgname = aws-c-compression

View File

@ -0,0 +1,4 @@
[aws-c-compression]
source = "git"
git = "https://github.com/awslabs/aws-c-compression.git"
prefix = "v"

View File

@ -0,0 +1,38 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Anatol Pomozov
# Maintainer: Carl Smedstad <carsme@archlinux.org>
pkgname=aws-c-compression
pkgver=0.3.1
pkgrel=1
pkgdesc='C99 implementation of huffman encoding/decoding'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/awslabs/aws-c-compression'
license=(Apache-2.0)
depends=(
aws-c-common
glibc
)
makedepends=(cmake)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('d89fca17a37de762dc34f332d2da402343078da8dbd2224c46a11a88adddf754')
build() {
cd $pkgname-$pkgver
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev \
-DBUILD_SHARED_LIBS=ON
cmake --build build
}
check() {
cd $pkgname-$pkgver
cmake --build build --target test
}
package() {
cd $pkgname-$pkgver
DESTDIR="$pkgdir" cmake --install build
}