summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ef1a777c795470906e02409e5976a9ea055dbd5 (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
# Maintainer: SEGFAULT <segfault@mailbox.org>
pkgname=jackctl-git
pkgver=0.0.0.47
pkgrel=1
pkgdesc='A no fuss solution to wrangling Pro-Audio on Linux'
arch=('any')
url='https://gitlab.com/IGBC/jackctl'
license=('GPL3')
depends=('gtk3' 'jack2' 'libappindicator-gtk3')
makedepends=('git' 'rust' 'gtk3' 'cmake' 'make' 'clang')
provides=('jackctl')
conflicts=('jackctl')
source=("${pkgname}::git+${url}")
sha1sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname}"
    printf "0.0.0.r%s" "$(git rev-list --count HEAD)"
}

build () {
    cd "${srcdir}/${pkgname}"
    export CARGO_HOME="${srcdir}/${pkgname}/CARGO"
    cargo build --release
}

package() {
  install -Dm644 ${srcdir}/${pkgname}/LICENSE.txt ${pkgdir}/usr/share/licenses/jackctl/LICENSE
    install -Dm755 ${srcdir}/${pkgname}/target/release/jackctl ${pkgdir}/usr/bin/jackctl
}