# Maintainer: David Harrigan # Contributor: Davide Depau # Contributor: Andy Weidenbaum pkgname=avro-c pkgver=1.11.0 pkgrel=1 pkgdesc="C bindings for Avro data serialization framework" arch=('i686' 'x86_64') makedepends=(cmake) depends=('jansson' 'snappy' 'xz' 'zlib') optdepends=('asciidoc: build with documentation' 'source-highlight: add syntax highlighting to documentation') url="https://github.com/apache/avro" license=('Apache') source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/release-${pkgver}.tar.gz) sha256sums=('c205140e7936d552286ba7131122a34e522d66f601ee912f272109d801f89773') build() { cd "$srcdir/avro-release-$pkgver/lang/c" msg2 'Building...' mkdir -p build && cd build export CFLAGS+=" ${CPPFLAGS}" export CXXFLAGS+=" ${CPPFLAGS}" cmake .. \ -DCMAKE_BUILD_TYPE='None' \ -DCMAKE_INSTALL_PREFIX='/usr' \ -DTHREADSAFE=true \ -Wno-dev make } package() { cd "$srcdir/avro-release-$pkgver/lang/c" msg2 'Installing license...' install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/avro-c" msg2 'Installing...' make DESTDIR="$pkgdir" install -C build/ }