updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / freecycle / PKGBUILD
blobb51fa9174ef231ffafaa926e042a7a0ec9405855
1 # Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
2 # Contributor: Maciej Ciemborowicz <moonkey (at) op (dot) pl>
3 pkgname=freecycle
4 pkgver=0.6.1.1alpha
5 pkgrel=3
6 pkgdesc="A beat slicer running on GNU/Linux platform using the QT toolkit"
7 arch=('i686' 'x86_64')
8 url="http://freecycle.redsteamrecords.com/"
9 license=('GPL')
10 depends=('qt3' 'jack-audio-connection-kit' 'fftw' 'ladspa')
11 makedepends=('soundtouch>=1.3.0')
12 source=(http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
13 md5sums=('14e2318ce870ab6d9384feda32b6703d')
15 build() {
16 export QTDIR=/opt/qt
17 export QMAKESPEC=$QTDIR/mkspecs/linux-g++
18 export PATH=$QTDIR/bin:$PATH
19 export PKG_CONFIG_PATH=/opt/qt/lib/pkgconfig:$PKG_CONFIG_PATH
21 cd ${startdir}/src/${pkgname}
22 sed -i -e 's|^DEFINES += HAS_LIBINSTPATCH|#DEFINES += HAS_LIBINSTPATCH|' \
23 -e 's|^DEFINES += HAS_AUBIO|#DEFINES += HAS_AUBIO|' \
24 -e 's|^INCLUDEPATH += /opt/gnome/include/glib-2.0|#INCLUDEPATH += /opt/gnome/include/glib-2.0|' \
25 -e 's|^STATIC_GLIB_PATH=/opt/gnome/lib|STATIC_GLIB_PATH=/usr/lib|' \
26 src/cond.pri || return 1
27 sed -i -e 's|bufferPointersLR=new (float\*)|bufferPointersLR=new float\*|' \
28 src/soundplayer.cpp || return 1
30 qmake freecycle.pro || return 1
31 make || return 1
33 install -D -m755 bin/${pkgname} ${startdir}/pkg/usr/bin/${pkgname} || return 1