updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / hypermammut / PKGBUILD
blob0802cf617d6832feb3615247306393a642cec6f9
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=hypermammut
4 pkgver=0.0.1
5 pkgrel=1
6 pkgdesc="Transforms the images and the sounds using single FFT (or DCT/DST,etc)."
7 arch=(i686 x86_64)
8 url="http://hypermammut.sourceforge.net/"
9 license=('GPL')
10 depends=('wxgtk' 'imagemagick' 'libjpeg' 'audiofile' 'fftw')
11 makedepends=('scons')
12 source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2")
13 md5sums=('483fcbd63300641847d16fb36c5eeca6')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver/src"
18   # scons script fixes
19   sed -e "s!wx-config --libs!&|sed \\\"s|-Wl,--as-needed||\\\"!" \
20       -e "s|macros|& -I/usr/include/ImageMagick|" \
21       -e "s|--ldflags||" \
22       -i SConstruct
24   # fix wrong cast
25   sed -i "s|(int)this|\*((int \*)this)|" Process/Generator/Random.cpp
27   # include missing wxwidget header
28   sed -i "25i#include <wx/button.h>" UI/ParametersDialog.cpp
30   scons
33 package() {
34   cd "$srcdir/$pkgname-$pkgver/src"
36   install -Dm755 test_s2i2s "$pkgdir/usr/bin/$pkgname"
39 # vim:set ts=2 sw=2 et: