blob: af180a5cccfd35f2b35d6aac75d714563ff72827 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Alexis Jeandeau <alexis[dot]jeandeau[at]gmail[dot]com>
pkgname=loudgain-git
_gitname=loudgain
pkgver=v0.6.8.r12.g0ff67ee
pkgrel=1
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' 'armv6h' 'armv7h' 'aarch64')
license=('BSD')
depends=('libebur128'
'ffmpeg'
'python'
'taglib')
makedepends=('cmake'
'git')
provides=('loudgain'
'rgbpm'
'rgbpm2')
conflicts=('loudgain')
source=('git+https://github.com/Moonbase59/loudgain')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
mkdir -p "${srcdir}/build"
}
build() {
cd "${srcdir}/build"
cmake ../${_gitname} -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}/" install
install -Dm755 "${srcdir}/${_gitname}/bin/rgbpm" ${pkgdir}/usr/bin/
install -Dm755 "${srcdir}/${_gitname}/bin/rgbpm2" ${pkgdir}/usr/bin/
# License is BSD 2 clause type and needs to be installed
install -Dm644 "${srcdir}/${_gitname}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
|