updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / mhwaveedit-git / PKGBUILD
blobc8739d6086d6c0b741c6ea3e31a4e0b34833c565
1 # Contributor: Bjoern Lindig <bjoern at googlemail dot com>
2 pkgname=mhwaveedit-git
3 pkgver=20100413
4 pkgrel=1
5 pkgdesc="A graphical program for editing, playing and recording sound files."
6 arch=('i686' 'x86_64')
7 url="https://gna.org/projects/mhwaveedit"
8 license=('GPL')
9 depends=('sdl' 'jack' 'gtk2')
10 makedepends=('git')
11 optdepends=('libpulse' 'esound')
12 provides=('mhwaveedit')
13 conflicts=('mhwaveedit')
14 replaces=('mhwaveedit')
15 install=
16 noextract=()
17 md5sums=() #generate with 'makepkg -g'
19 _gitroot="git://github.com/magnush/mhwaveedit.git"
20 _gitname="mhwaveedit"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     #mkdir $_gitname
31     git clone $_gitroot $_gitname
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "$srcdir/$_gitname-build"
38   #mkdir "$srcdir/$_gitname-build"
39   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build"
42   #
43   # BUILD HERE
44   #
46   cd "$srcdir/$_gitname-build/docgen"
47   bash gendocs.sh 
48   cd "$srcdir/$_gitname-build/"
49   aclocal -I m4
50   autoheader
51   automake
52   autoconf
53   ./configure --prefix=/usr
54   make -C po mhwaveedit.pot-update
55   make || return 1
56   make DESTDIR="$pkgdir/" install
57