pkgname=brotli pkgver=1.1.0 pkgrel=1 pkgdesc='Generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm' url='https://github.com/google/brotli' arch=('x86_64') license=('MIT') makedepends=('cmake') source=("https://github.com/google/brotli/archive/refs/tags/v${pkgver}.tar.gz") sha256sums=('e720a6ca29428b803f4ad165371771f5398faba397edf6778837a18599ea13ff') build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build install -Dm 644 ${pkgname}-${pkgver}/LICENSE -t ${pkgdir}/usr/share/licenses/${pkgname} }