summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16c8f1bc5e4ff87babb28ffe0af00b365c671ef1 (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
# Maintainer: Peter Vasil <mail@petervasil.net>
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: sputnick <gilles DOT quenot AT gmail DOT com>

pkgname=xwax-git
_name=xwax
pkgver=1.6.beta2
pkgrel=1
pkgdesc='Open-source vinyl emulation software for Linux.'
arch=('i686' 'x86_64')
url='http://www.xwax.co.uk/'
license=('GPL')
depends=('alsa-lib' 'sdl_ttf' 'ttf-dejavu' 'jack')
optdepends=('cdparanoia: for CD import'
            'mpg123: for MP3 import'
            'ffmpeg: for video fallback import')
source=("${pkgname}::git+http://xwax.org/devel/xwax.git")
md5sums=('SKIP')
conflicts=('xwax')
provides=('xwax')

pkgver() {
  cd "${srcdir}/${pkgname}"
  git describe | sed 's/^v//;s/-/./g;s/_/./g;'
}

build() {
  cd "${srcdir}/${pkgname}"

  # patch "rig.c" to use Arch Linux's default rtprio value
  sed -i 's/^#define REALTIME_PRIORITY 80/#define REALTIME_PRIORITY 65/' rig.c

  ./configure --enable-alsa --enable-jack --prefix /usr
  make EXECDIR="/usr/share/${_name}"
}

package() {
  cd "${srcdir}/${pkgname}"
  make DESTDIR="${pkgdir}" EXECDIR="/usr/share/${_name}" install
}