# Maintainer: Jesus E. pkgname=libebur128 pkgver=1.2.5 pkgrel=1 pkgdesc='A library that implements the EBU R 128 standard for loudness normalisation.' arch=('i686' 'x86_64') url='https://github.com/jiixyj/libebur128' license=('Expat') depends=('glibc') makedepends=('cmake') source=($pkgname-$pkgver.tar.gz::"https://github.com/jiixyj/$pkgname/archive/v$pkgver.tar.gz") sha512sums=('5f53c64f47bbad224840eef978bbc357f3fab091ef45f849749e5fabba0035d074451bc6e60240d3ff2c56b96faaf66fb91f32f96dcaacd9d81d3c148688c2f7') build() { cmake -B build -S $pkgname-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_STATIC_LIBS=OFF cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname }