blob: e23c609e71360806cb74141508b7926b9c2400d0 (
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
|
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
_pkgname=jack_mixer
pkgname="$_pkgname-git"
pkgver=19.r0.g4feeafa
pkgrel=1
pkgdesc='A multi-channel audio mixer desktop application for JACK (git version)'
arch=(x86_64)
url='https://github.com/jack-mixer'
license=(GPL2)
groups=(pro-audio)
depends=(glibc gtk3 hicolor-icon-theme pango python-cairo python-gobject python-platformdirs)
makedepends=(cython git glib2 jack meson ninja python-docutils)
optdepends=('new-session-manager: NSM session management support')
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+https://github.com/jack-mixer/jack_mixer.git")
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
local ver="$(grep -A 5 ^project meson.build | grep '^ *version:' | cut -d "'" -f 2)"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
)
}
build() {
cd $_pkgname
if [[ -d builddir ]]; then
arch-meson --reconfigure builddir --prefix=/usr --buildtype=release
else
arch-meson builddir --prefix=/usr --buildtype=release
fi
meson compile -C builddir
}
package() {
depends+=(libglib-2.0.so libjack.so)
cd $_pkgname
DESTDIR="$pkgdir" meson install -C builddir
# Install documentation
install -Dm644 AUTHORS README.md CHANGELOG.md -t "$pkgdir"/usr/share/doc/$pkgname
}
|