1 # Maintainer: Pierre Chiche <pierre dot chiche at gmail dot com>
5 pkgdesc="The signal processing command language."
7 url="http://www.cmap.polytechnique.fr/~bacry/LastWave/"
11 source=('http://www.cmap.polytechnique.fr/~bacry/LastWave/download1.php?file=LastWave_3_1.unix.zip&type=x-zip&computer=unix'
14 md5sums=('0edd733971ab3224815fb0174009c278'
15 '2c58c72f53ff8199ded91ef2f0e2688b'
16 '4613a11c57602e36a6557150fb43687f')
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
26 cd "${srcdir}/LastWave_3_1/"
27 patch -p1 < ${srcdir}/wxsystem.patch
28 patch -p1 < ${srcdir}/image_file.patch
30 cd "${srcdir}/LastWave_3_1/LastWave/Makefiles/"
32 make makes || 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."