summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68b2c4f63b935ce21530826296fe9d23b22c7eef (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
# Maintainer: Formed <formed at tuta dot io>
# Contributor: Mark Wagie <mark dot wagie at proton dot me>
pkgname=viper4linux-git
pkgver=r18.590a936
pkgrel=1
epoch=1
pkgdesc="Implementation of the libviper library for modern Linux desktops."
arch=('x86_64')
url="https://github.com/Audio4Linux/Viper4Linux"
license=('GPL-3.0-or-later')
depends=('gst-plugin-viper4linux' 'gst-plugins-good')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" 'jdsp4linux')
source=("${pkgname%-git}::git+https://github.com/Audio4Linux/Viper4Linux.git")
sha256sums=('SKIP')

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

package() {
  cd "$srcdir/${pkgname%-git}"
  install -Dm755 viper -t "$pkgdir/usr/bin"
  install -Dm644 README.md -t "$pkgdir/usr/share/doc/${pkgname%-git}"
  install -Dm644 "${pkgname%-git}/audio.conf" \
    "$pkgdir/usr/share/doc/${pkgname%-git}/audio.conf.example"
  install -m644 "${pkgname%-git}/"*.conf.template \
    "$pkgdir/usr/share/doc/${pkgname%-git}"
}