-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
56 lines (51 loc) · 1.47 KB
/
PKGBUILD
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
52
53
54
55
56
# Maintainer: David Runge <[email protected]>
_pkgname=yaebumeter
pkgname="${_pkgname}-git"
pkgver=0.4.2
pkgrel=4
pkgdesc="Loudness measurement according to EBU-R128"
arch=('x86_64')
url="https://github.com/actionless/ebumeter-hidpi"
license=('GPL3')
groups=('pro-audio')
depends=('clxclient' 'clthreads' 'jack' 'zita-resampler')
makedepends=('gendesk')
source=(
"${pkgname}::git+${url}.git#branch=master"
)
sha512sums=('SKIP')
# @TODO: change binary name to avoid conflict in case if it won't be merged upstream:
conflicts=('ebumeter-git' 'ebumeter')
provides=('ebumeter')
pkgver() {
cd "${srcdir}/${pkgname}" || exit 2
set -o pipefail
git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || echo 0.0.1
}
prepare() {
cd "${srcdir}/${pkgname}" || exit 2
#sed -e '/native/d' \
# -i source/Makefile
# XDG desktop file
gendesk -n -f \
--pkgname ${_pkgname} \
--pkgdesc "${pkgdesc}" \
--name ${_pkgname} \
--categories "AudioVideo;Audio"
}
build() {
cd "${srcdir}/${pkgname}" || exit 2
make -C source PREFIX=/usr
}
package() {
cd "${srcdir}/${pkgname}" || exit 2
make -C source PREFIX=/usr DESTDIR="$pkgdir/" install
# XDG desktop integration
install -vDm 644 "${_pkgname}.desktop" \
-t "${pkgdir}/usr/share/applications/"
install -vDm 644 {AUTHORS,doc/*.pdf} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 CHANGELOG_original "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG"
install -vDm 644 doc/*.{html,png} \
-t "${pkgdir}/usr/share/doc/${pkgname}/html"
}