blob: c6cb3ae271a8f8ef1d3c7540357267e881156829 (
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
|
# Maintainer: Gilrain <gilrain+libre.arch A_T castelmo DOT_ re>
# 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/docs/$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
}
|