# Maintainer: pkgname=libserdes pkgver=7.4.1 pkgrel=1 pkgdesc="Avro Serialization/Deserialization C/C++ library with Confluent schema-registry support " url="https://github.com/confluentinc/libserdes" # 32-bit: avro-dev arch="all !x86 !armhf !armv7" license="Apache-2.0" makedepends=" avro-dev bash bsd-compat-headers curl-dev " subpackages="$pkgname++:pp $pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/confluentinc/libserdes/archive/refs/tags/v$pkgver.tar.gz" build() { CFLAGS="$CFLAGS -O2 -flto=auto" \ CXXFLAGS="$CXXFLAGS -O2 -flto=auto" \ bash ./configure \ --prefix=/usr \ --host=$CHOST \ --build=$CBUILD \ --disable-dependency-tracking make } check() { make check } package() { make DESTDIR="$pkgdir" install rm "$pkgdir"/usr/lib/*.a rm "$pkgdir"/usr/lib/pkgconfig/*-static.pc } pp() { amove usr/lib/libserdes++.so.* } sha512sums=" 5add6b67b15da43fe4bf7d50264925d81838cdb55f1b04b173a8f5653e5c0cbcc28bfeb81386ebcf5767c459f4460b068c62a2002cdb8e208593ebea6f575996 libserdes-7.4.1.tar.gz "