pkgname=zstd pkgver=1.5.6 pkgrel=1 pkgdesc="Zstandard - Fast real-time compression algorithm" arch=('x86_64') url="https://facebook.github.io/zstd/" license=('BSD-3-Clause' 'GPL-2.0-only') depends=('gcc-libs' 'glibc' 'lz4' 'zlib' 'xz') makedepends=('meson') source=(https://github.com/facebook/zstd/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1) build() { cd ${pkgname}-${pkgver}/build/meson export CFLAGS+=' -ffat-lto-objects' export CXXFLAGS+=' -ffat-lto-objects' local meson_args=( ) ${meson_options} ${meson_args[@]} ${meson_build} } package() { cd ${pkgname}-${pkgver}/build/meson ${meson_install} ${pkgdir} }