updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / lastwave / PKGBUILD
blobf911c9e3a0d7e040090a177190c9ef98482abed8
1 # Maintainer: Pierre Chiche <pierre dot chiche at gmail dot com>
2 pkgname=lastwave
3 pkgver=3.1
4 pkgrel=2
5 pkgdesc="The signal processing command language."
6 arch=('i686' 'x86_64')
7 url="http://www.cmap.polytechnique.fr/~bacry/LastWave/"
8 license=('unknown')
9 depends=('wxgtk')
10 makedepends=('wxgtk')
11 source=('http://www.cmap.polytechnique.fr/~bacry/LastWave/download1.php?file=LastWave_3_1.unix.zip&type=x-zip&computer=unix'
12         'wxsystem.patch'
13         'image_file.patch')
14 md5sums=('0edd733971ab3224815fb0174009c278'
15          '2c58c72f53ff8199ded91ef2f0e2688b'
16          '4613a11c57602e36a6557150fb43687f')
18 build() {
19     sed 's|$(ARCH)|linux|g' -i ${srcdir}/LastWave_3_1/LastWave/Makefiles/Makefile
20     sed 's|$(ARCH)|linux|g' -i ${srcdir}/LastWave_3_1/LastWave/Makefiles/GenericUnixMakefile
21     sed 's|$(ARCH)|linux|g' -i ${srcdir}/LastWave_3_1/LastWave/Makefiles/MakeDefs.linux
22     sed 's|$(LWPATH)|'"${srcdir}"'/LastWave_3_1/LastWave|g' -i ${srcdir}/LastWave_3_1/LastWave/Makefiles/Makefile
23     sed 's|$(LWPATH)|'"${srcdir}"'/LastWave_3_1/LastWave|g' -i ${srcdir}/LastWave_3_1/LastWave/Makefiles/GenericUnixMakefile
24     sed 's|$(LWPATH)|'"${srcdir}"'/LastWave_3_1/LastWave|g' -i ${srcdir}/LastWave_3_1/LastWave/Makefiles/MakeDefs.linux
25     
26     cd "${srcdir}/LastWave_3_1/"
27     patch -p1 < ${srcdir}/wxsystem.patch
28     patch -p1 < ${srcdir}/image_file.patch
29     
30     cd "${srcdir}/LastWave_3_1/LastWave/Makefiles/"
31     make dirs || return 1
32     make makes || return 1
33     make || return 1
34     install -D -m 755 ${srcdir}/LastWave_3_1/LastWave/bin/linux/lw ${pkgdir}/usr/bin/lastwave
35     install -d ${pkgdir}/usr/share/lastwave
36     cp -r ${srcdir}/LastWave_3_1/scripts ${pkgdir}/usr/share/lastwave
37     msg "You will have to specify /usr/share/lastwave/scripts as the scripts directory on first use."