archrelease: copy trunk to community-any
[ArchLinux/community.git] / ebumeter / trunk / PKGBUILD
blobac97f4d74fbddacf3913a10b7da2ddbe0e2dac8a
1 # Maintainer: David Runge <dave@sleepmap.de>
3 pkgbase=ebumeter
4 pkgname=(ebumeter ebumeter-docs)
5 pkgver=0.5.1
6 pkgrel=1
7 pkgdesc="Loudness measurement according to EBU-R128"
8 arch=(x86_64)
9 url="https://kokkinizita.linuxaudio.org/linuxaudio/ebumeter-doc/quickguide.html"
10 license=(GPL3)
11 makedepends=(clxclient clthreads gendesk jack libsndfile zita-resampler)
12 source=(https://kokkinizita.linuxaudio.org/linuxaudio/downloads/$pkgbase-$pkgver.tar.xz)
13 sha512sums=('46a5277d60abeb9fcc94f53730a335fdb5c1f6f6a6aa4a4c9df0f5a34019c16cbb58ae23d4631ff24ad0cc8c514c970105e7301962b3918a82a6d994f520a555')
14 b2sums=('46bb822b34003b51fe6e2f16ce78a430b5ce76522e500c35fdf33c8b8da8bcaacea97cf3c1620cc47c1e73ec5a777a79f1ab7530f51e730487cafec13b9294b5')
16 prepare() {
17   # remove march=native
18   sed -e '/native/d' -i $pkgbase-$pkgver/source/Makefile
19   # XDG desktop file
20   gendesk -n \
21           --pkgname $pkgbase \
22           --pkgdesc "$pkgdesc" \
23           --name $pkgbase \
24           --categories "AudioVideo;Audio"
27 build() {
28   make PREFIX=/usr -C $pkgbase-$pkgver/source
31 package_ebumeter() {
32   groups=(pro-audio)
33   depends=(
34     clxclient libclxclient.so
35     clthreads libclthreads.so
36     gcc-libs
37     glibc
38     jack libjack.so
39     zita-resampler libzita-resampler.so
40   )
41   optdepends=(
42     'ebumeter-docs: for documentation'
43     'libsndfile: for ebur128'
44   )
46   make PREFIX=/usr DESTDIR="$pkgdir/" install -C $pkgbase-$pkgver/source
47   install -vDm 644 $pkgbase.desktop -t "$pkgdir/usr/share/applications/"
50 package_ebumeter-docs() {
51   pkgdesc+=" - documentation"
53   install -vDm 644 $pkgbase-$pkgver/{AUTHORS,README,doc/*.pdf} -t "$pkgdir/usr/share/doc/$pkgbase/"
54   install -vDm 644 $pkgbase-$pkgver/doc/*.{html,png} -t "$pkgdir/usr/share/doc/$pkgbase/html/"