updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qmmp-svn-stable / PKGBUILD
blob711040f0fbc59e1cb4724904f770b78c86c7e08a
1 # Contributor: h31 <h31mail@yandex.com>
2 # Maintainer: Andrew Panchenko <panchenkoac@gmail.com>
3 pkgname=qmmp-svn-stable
4 pkgver=2289
5 pkgrel=1
6 pkgdesc="A Qt4 based audio-player - svn version (stable 0.5.x branch)"
7 arch=('i686' 'x86_64')
8 url="http://qmmp.ylsoftware.com"
9 license=('GPL')
10 depends=('qt>=4.6' 'tar' 'unzip' 'bzip2' 'gzip' 'libmad' 'libvorbis' 'libogg'
11                         'alsa-lib>=1.0.1' 'taglib>=1.6' 'curl>=7.16' 'hicolor-icon-theme')
12 optdepends=( 'libmms>=0.4' 'flac>=1.1.3' 'libmpcdec>=1.2.6' 'jack>=0.102.5'
13                         'libsamplerate>=0.1.2' 'libmodplug>=0.8.4' 'libsndfile>=1.0.17'
14                         'wavpack>=4.41' 'libpulse>=0.9.15' 'ffmpeg' 'libcdio>=0.80'
15                         'faad2>=2.6.1' 'libgme>=0.5.5' 'wildmidi>=0.2.3.4'
16                         'libbs2b>=3.0.0' 'projectm>=1.2.0' 'enca>=1.9' 'mplayer' )
17 makedepends=('subversion' 'cmake>=2.6.0')
18 provides=('qmmp' 'qmmp-svn')
19 conflicts=('qmmp' 'qmmp-svn')
20 install=${pkgname}.install
21 source=()
22 md5sums=()
24 _svntrunk=http://qmmp.googlecode.com/svn/branches/qmmp-0.5/
25 _svnmod=qmmp-read-only
27 build() {
28   cd $startdir/src
29   if [ -d $_svnmod/.svn ]; then
30     (cd $_svnmod && svn up -r $pkgver)
31   else
32     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
33   fi
34   msg "SVN checkout done or server timeout"
35   if [ -d $_svnmod-build ]; then
36     rm -Rf $_svnmod-build
37   fi 
38   svn --force export $_svnmod $_svnmod-build
39   cd $_svnmod-build
40   msg "Starting make..."
41   cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE
42   make || return 1
44 package() {
45   cd $_svnmod-build
46   make DESTDIR="${pkgdir}" install || return 1