updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / paulstretch-git / PKGBUILD
blob4ace752de45d5cceea7aeb69e63140bfa8ab0e95
1 # Maintainer: Army <uli armbruster who uses the google mail service>
3 pkgname=paulstretch-git
4 _pkgname=paulstretch
5 pkgver=20110916
6 pkgrel=1
7 pkgdesc="a program for stretching the audio"
8 arch=('i686' 'x86_64')
9 url="http://hypermammut.sourceforge.net/paulstretch/"
10 license=(GPL)
11 depends=('fltk' 'fftw' 'portaudio' 'mxml' 'libmad' 'libvorbis' 'audiofile')
12 makedepends=('git')
13 provides=('paulstretch')
14 conflicts=('paulstretch')
16 _gitroot="https://github.com/paulnasca/paulstretch_cpp.git"
17 _gitname="${_pkgname}"
19 build() {
20         cd "$srcdir"
21         msg "Connecting to GIT server...."
22         
23         if [ -d ${_gitname} ] ; then
24                 cd ${_gitname} && git pull origin
25                 msg "The local files are updated."
26         else
27                 git clone ${_gitroot} ${_gitname}
28         fi
29         msg "GIT checkout done or server timeout"
30         msg "Starting make..."
32         rm -rf "${srcdir}/${_gitname}-build"
33         cp -a "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
34         cd "${srcdir}/${_gitname}-build"
35         
36         sed -i '23i#include <string.h>' Input/MP3InputS.cpp
37         ./compile_linux_fftw.sh
40 package() {
41   install -Dm755 "${srcdir}/${_gitname}-build/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"