# Maintainer: Gilrain # Contributor: Seqularise pkgname=rsgain pkgver=3.5 pkgrel=1 pkgdesc="ReplayGain 2.0 loudness normalizer" arch=('x86_64') url="https://github.com/complexlogic/rsgain" license=('BSD-2-Clause') depends=( 'libebur128' 'libavcodec.so' 'libavformat.so' 'libavutil.so' 'libswresample.so' 'libinih' 'taglib' ) makedepends=(cmake fmt) source=("$pkgname-$pkgver.tar.gz::https://github.com/complexlogic/$pkgname/archive/refs/tags/v$pkgver.tar.gz") sha512sums=('a6a2d90cd7024abe776b55102ba0fb90ae12ea66bbd180d8b7d7f4927d84d51dafeca7594ad9b9890bcf9fff1b7b2a5b7cafa3dbb3930fb009d14951c0423d6a') build() { cmake -B build -S $pkgname-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 $pkgname-$pkgver/README.md "$pkgdir"/usr/share/doc/$pkgname/README.md install -Dm644 $pkgname-$pkgver/docs/$pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1 install -Dm644 $pkgname-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }