# Contributor: Leo # Maintainer: Leo pkgname=zchunk pkgver=1.1.3 pkgrel=0 pkgdesc="File format for highly efficient deltas" url="https://github.com/zchunk/zchunk" arch="all" license="BSD-2-Clause" makedepends=" meson zstd-dev curl-dev openssl-dev argp-standalone " subpackages="$pkgname-dev lib$pkgname:libs" source=" $pkgname-$pkgver.tar.gz::https://github.com/zchunk/zchunk/archive/$pkgver.tar.gz fix-musl.patch " build() { LDFLAGS="$LDFLAGS -largp" \ meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ -Dwith-zstd=enabled \ -Dwith-openssl=enabled \ -Dcoverity=false \ . output ninja -C output } check() { ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } sha512sums="564c2e2718ae2e50d1fa32a99ddfb126685abb1050b3884803c89e78a94d5b265cec1cd0ddbff927cdc2bab1d7c15971244f525081ca4d8d9581675e3e16fd5b zchunk-1.1.3.tar.gz d35f72d42d5d00189ad732f232b8eee5a347832517229bc9272acf98edb0886a6b581c801005f61a054d70b35c457e9ca0fd3dee524958c92eaf5ea80f40d68a fix-musl.patch"