summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b62e7e257dc18ecbf766227632f322ba514f1700 (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
# Maintainer: Julian Wolff <wolff at julianwolff dot de>
pkgname=jackman-git
pkgver=r61.44efc9d
pkgrel=3
pkgdesc='Collection of scripts that help managing multiple audio interfaces with Jack'
arch=('any')
url=''
license=('GPL3')
conflicts=(jackman)
provides=(jackman)
depends=('jack' 'alsa-utils' 'python2-dbus' 'systemd' 'coreutils')
makedepends=('git')
optdepends=('zenity: system notifications'
	   'kdialog: system notifications')
source=('jackman::git+https://github.com/progwolff/jackman.git')
md5sums=('SKIP')

_gitroot="https://github.com/progwolff/jackman.git"
_gitname=jackman

pkgver() {
  cd "$_gitname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

install=.install

package() {
  mkdir -p "$pkgdir/usr/bin"
  mkdir -p "$pkgdir/etc/udev/rules.d"
  mkdir -p "$pkgdir/usr/lib/systemd/system/"
  mkdir -p "$pkgdir/etc/xdg/autostart/"
  cp ./${_gitname}/50-jackman.rules "$pkgdir/etc/udev/rules.d/"
  cp ./${_gitname}/jackman "$pkgdir/usr/bin/"
  cp ./${_gitname}/jackman_udev* "$pkgdir/usr/bin/"
  cp ./${_gitname}/*.service "$pkgdir/usr/lib/systemd/system/"
  for d in `cd ./${_gitname}/po; ls -1 *.po 2>/dev/null`; do
  	mkdir -p "$pkgdir/usr/share/locale/${d%.po}/LC_MESSAGES"
  	msgfmt -o "$pkgdir/usr/share/locale/${d%.po}/LC_MESSAGES/jackman.mo" ./${_gitname}/po/${d} 
  done
}