blob: 62b5e258ab01f549e8b407ed9265e29a62ed5ad6 (
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
|
# Maintainer: crowdigit <digitalcrow at protonmail dot com>
# Contributor: Douglas Browne <douglas.browne123 at gmail dot com>
pkgname=loudness-scanner-git
pkgver=v0.6.0.r2.g3e38b3e
pkgrel=1
pkgdesc="EBUR128 ReplayGain loudness normalization tool"
arch=('armv6h' 'armv7h' 'aarch64' 'x86_64')
url="https://github.com/jiixyj/loudness-scanner"
license=('MIT')
depends=('libebur128' 'glib2' 'taglib1' 'ffmpeg4.4')
makedepends=('cmake' 'git')
optdepends=('gstreamer: gstreamer input support'
'libsndfile: libsndfile input support'
'libmpcdec: libmpcdec input support'
'mpg123: libmpg123 input support')
provides=('loudness-scanner')
conflicts=('loudness-scanner')
source=("$pkgname::git+https://github.com/jiixyj/loudness-scanner.git"
"fix_build.patch")
sha256sums=('SKIP'
'3b485bbf4d76576ab323e47701cd3594ddab0d198adff8ec1f17d25369e2490d')
prepare() {
cd "$srcdir/$pkgname"
git submodule init
git submodule update
}
build() {
cd "${srcdir}/${pkgname}"
git apply "${startdir}/fix_build.patch"
env PKG_CONFIG_PATH="/usr/lib/ffmpeg4.4/pkgconfig:/usr/lib/taglib1/pkgconfig" \
cmake -DDISABLE_GTK2:BOOL=ON -DDISABLE_QT5:BOOL=ON --log-level=VERBOSE .
make
}
package() {
cd "$srcdir/$pkgname"
install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 755 loudness "${pkgdir}/usr/bin/loudness"
for i in libinput_*; do
install -Dm 644 "$i" "${pkgdir}/usr/lib/$i"
done
}
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
|