# Maintainer: blubbblubb pkgname=loudgain pkgver=v0.6.8 _pkgver=0.6.8 pkgrel=2 pkgdesc="A loudness normalizer that scans music files and calculates loudness-normalized gain and loudness peak values according to the EBU R128 standard, and can optionally write ReplayGain-compatible metadata." url="https://github.com/Moonbase59/loudgain" arch=('i686' 'x86_64') license=('BSD 2-Clause "Simplified" License') depends=("taglib" "libebur128" "ffmpeg") makedepends=('cmake') provides=('loudgain' 'rgbpm') source=("loudgain-${_pkgver}.tar.gz::https://github.com/Moonbase59/loudgain/archive/${pkgver}.tar.gz") sha256sums=('1137c193ad941b366e87c5d84ccc95a7aa8571affc060db0bd1cf72c489aeaee') build() { cd "${srcdir}/${pkgname}-${_pkgver}" mkdir -p build && cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "${srcdir}/${pkgname}-${_pkgver}/build" make DESTDIR="${pkgdir}/" install install -D -m755 ../bin/rgbpm ${pkgdir}/usr/bin/ install -D -m644 "${srcdir}/${pkgname}-${_pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }