updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / wxmusik / PKGBUILD
blob3a4c3a715e4ac6345e3d3f49e6e9332ac4160094
1 # Maintainer kfgz <kfgz at interia pl>
3 pkgname=wxmusik
4 pkgver=348
5 pkgrel=1
6 pkgdesc="An iTunes-like music jukebox, supporting cross-fadding, 16-band dual-channel equalizer, auto-tagging and fuzzy search."
7 url="http://musik.berlios.de/"
8 arch=('i686' 'x86_64')
9 license=('BSD')
10 depends=('faad2' 'flac' 'fmodex' 'libmpcdec' 'libsm' 'libtiff' 'libxxf86vm' 'mac' 'wxgtk')
11 optdepends=('lastfmsubmitd: last.fm scrobbling support')
12 makedepends=('cmake' 'subversion')
13 provides=('wxmusik')
15 _svntrunk=svn://svn.berlios.de/musik
16 _svnmod=musik
18 # wxMusik compiling doc ==> http://musik.berlios.de/?id=compileonlin
20 build() {
21         
22   cd ${srcdir}
24   if [ -d ${_svnmod}/.svn ]; then
25     (cd ${_svnmod} && svn up -r ${pkgver})
26   else
27     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
28   fi
29   
30   msg "SVN checkout done or server timeout"
31   msg "Starting make..."
32   
33   cd ${_svnmod}/trunk/wxMusik
34   mkdir crelbuild
35   cd crelbuild
37   #ccmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DFMOD_LIBRARY=/usr/lib/libfmodex.so
38   cmake .. \
39           -DCMAKE_INSTALL_PREFIX=/usr \
40           -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
41           -DFMOD_LIBRARY=/usr/lib/libfmodex.so \
42           -OPTION_SUPPORT_APE:BOOL=ON \
43           -OPTION_SUPPORT_FLAC:BOOL=ON \
44           -OPTION_SUPPORT_MPC:BOOL=ON \
45           -OPTION_SUPPORT_FAAD2:BOOL=ON \
46           -DWXWINDOWS_USE_SHARED_LIBS:BOOL=ON
48   make
49   
50   make DESTDIR=${pkgdir} install
51   rm -r ${pkgdir}/usr/lib
52   rm ${pkgdir}/usr/share/locale/cs/LC_MESSAGES/wxstd.mo
53   rm ${pkgdir}/usr/share/locale/de/LC_MESSAGES/wxstd.mo
54   rm ${pkgdir}/usr/share/locale/es/LC_MESSAGES/wxstd.mo
55   rm ${pkgdir}/usr/share/locale/fr/LC_MESSAGES/wxstd.mo
56   rm ${pkgdir}/usr/share/locale/it/LC_MESSAGES/wxstd.mo
57   rm ${pkgdir}/usr/share/locale/nl/LC_MESSAGES/wxstd.mo
58   rm ${pkgdir}/usr/share/locale/pl/LC_MESSAGES/wxstd.mo
59   rm ${pkgdir}/usr/share/locale/ru/LC_MESSAGES/wxstd.mo
60   #rm -rf ${srcdir}