updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / jack-stdout-git / PKGBUILD
blobb5440ea5627af5f4ce59c5fc4c1c8f1fc8abb68d
2 pkgname=jack-stdout-git
3 pkgver=20110331
4 pkgrel=1
5 pkgdesc="a small tool that writes JACK audio-sample data to buffered standard output. jack-stdin reads raw audio data from standard-input and writes it to a JACK audio port."
6 arch=('i686' 'x86_64')
7 url="http://rg42.org/oss/jackstdio/start"
8 license=('GPL')
9 makedepends=('git')
10 provides=('jack-stdout')
11 conflicts=('jack-stdout')
12 replaces=('jack-stdout')
14 _gitroot="git://rg42.org/jack-stdout"
15 _gitname="jack-stdout"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   make all
38 package() {
39   cd "$srcdir/$_gitname-build"
40         
41         mkdir -p ${pkgdir}/usr/bin
42         mkdir -p ${pkgdir}/usr/share/man/man1/
43         
44         install -m 755 jack-stdout ${pkgdir}/usr/bin/
45         install -m 755 jack-stdin  ${pkgdir}/usr/bin/
46         install -m 644 jack-stdout.1 ${pkgdir}/usr/share/man/man1/
47         install -m 644 jack-stdin.1 ${pkgdir}/usr/share/man/man1/
48         
49