#$Id: PKGBUILD 103152 2013-12-27 20:10:05Z jlichtblau $ # Maintainer: Jaroslav Lichtblau pkgname=qmmp pkgver=0.7.4 pkgrel=1 pkgdesc="Qt4 based audio-player" arch=('i686' 'x86_64' 'mips64el') url="http://qmmp.ylsoftware.com/" license=('GPL') depends=('alsa-lib' 'curl' 'hicolor-icon-theme' 'libmad' 'libvorbis' 'libogg' 'qt4' 'taglib' 'xdg-utils') makedepends=('cmake' 'flac' 'jack' 'libmpcdec' 'pulseaudio' 'ffmpeg' 'libcdio-paranoia' 'libcddb' 'libmms' 'libsamplerate' 'libmodplug' 'libsndfile' 'wavpack' 'projectm' 'mesa') optdepends=('flac: native FLAC support' 'jack: JACK sound output' 'libmpcdec: Musepack support' 'pulseaudio: PulseAudio output' 'libcdio-paranoia: Compact Disc input and control support' 'libcddb: CDDB server support' 'libmms: MMS stream protocol support' 'libmodplug: MOD playing library' 'libsndfile: sampled sound support' 'projectm: visual efects' 'ffmpeg' 'libsamplerate' 'wavpack') install=$pkgname.install changelog=$pkgname.changelog source=(http://qmmp.ylsoftware.com/files/$pkgname-$pkgver.tar.bz2) sha256sums=('ba10d0595b99495587643584c9c8400e6eb987bd2e4bbb30c1060c507f44b4f2') build() { cd ${srcdir}/$pkgname-$pkgver cmake . -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib make } package() { cd ${srcdir}/$pkgname-$pkgver make DESTDIR=${pkgdir} install if [[ $CARCH == 'x86_64' ]]; then mv $pkgdir/usr/lib64 $pkgdir/usr/lib fi }