updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qmplay / PKGBUILD
blob4114a40cc82b71d7f17c25f3d6f9439287916307
1 pkgname=qmplay
2 pkgver=1.54.05
3 pkgrel=1
4 pkgdesc="Polish, cross-platform music player. QMPlay plays music from hard disk, 4shared.com and wrzuta.pl. Supported formats: AudioCD, MODs, OGG Vorbis, MP3, AAC, FLAC and uncompressed audio."
5 url="http://zaps166.sourceforge.net/"
6 license="LGPL"
7 arch=('i686' 'x86_64')
8 depends=('qt' 'mpg123' 'libmikmod' 'libmodplug' 'faad2' 'libcdio' 'libcddb' 'curl' 'taglib' 'libvorbis' 'libogg' 'portaudio' 'libsndfile')
9 makedepends=('gcc' 'make')
10 install=QMPlay.install
12 build()
14         cd $pkgdir
16         mkdir -p usr/share/applications/
17         mkdir -p usr/share/pixmaps/
18         mkdir -p usr/bin/
19         mkdir opt/
21         ln -s ../../opt/qmplay/qmplay $pkgdir/usr/bin/qmplay
23         cd $srcdir
24         if [ $PWD != $srcdir ]; then
25                 echo "Error"
26                 return 1
27         fi
28         rm -rf *
29         wget "http://sourceforge.net/projects/zaps166/files/QMPlay/src/QMPlay-$pkgver.tar.bz2/download" -O qmplay
30         tar xf qmplay
31         if [ $? != 0 ]; then
32                 echo "Can't unpack archive, exiting... ;("
33                 return 1
34         fi
35         cd "QMPlay"
36         ./compile_unix
37         if [ $? != 0 ]; then
38                 echo "There are errors, exiting... ;("
39                 return 1
40         fi
41         rm -rf qmplay/install
42         mv qmplay $pkgdir/opt/
44         cp src/qmp_lib/icons/play_64x64.png $pkgdir/usr/share/pixmaps/QMPlay.png
45         cp src/qmplay/Unix/install/QMPlay.desktop $pkgdir/usr/share/applications/
46         cp src/qmplay/Unix/install/QMPlay_enqueue.desktop $pkgdir/usr/share/applications/
47         cp src/qmplay/Unix/install/qplst-qplst.xml $pkgdir/opt/qmplay/
49         cd $pkgdir/opt/qmplay
51         touch noautoupdates
53         return 0