summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 587a0f02047fe72c24d74f916069fd4b8cd3346b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Reiser <metal@pop3.ru>
# Contributor: Andrew Panchenko <panchenkoac at gmail>

pkgname=qmmp-svn
pkgver=1.0.0.svn.r5415
pkgrel=1
pkgdesc="A Qt4 based audio-player. (SVN Version)"
arch=('i686' 'x86_64')
url="http://qmmp.ylsoftware.com"
license=('GPL')
depends=('curl'
         'hicolor-icon-theme'
         'qt5-x11extras'
         'xdg-utils'
         'taglib')
makedepends=('subversion'
             'cmake'
             'flac'
             'jack2'
             'libmpcdec'
             'libpulse'
             'ffmpeg'
             'libcdio-paranoia'
             'libcddb'
             'enca'
             'wildmidi'
             'libgme'
             'libmad'
             'libvorbis'
             'libogg'
             'libmms'
             'libsamplerate'
             'libmodplug'
             'libsndfile'
             'wavpack'
             'projectm'
             'mesa'
             'libsidplayfp'
             'opusfile'
             'faad2'
             'libbs2b'
             'taglib'
             'alsa-lib')
optdepends=('qmmp-plugin-pack-svn: for mpg123, ffap and qtui plugin'
            'flac: native FLAC support'
            'jack2: JACK sound output'
            'libmpcdec: Musepack support'
            'alsa-lib: ALSA output suppport'
            'libpulse: PulseAudio output support'
            'libcdio-paranoia: Compact Disc input and control support'
            'libcddb: CDDB server support'
            'libmms: MMS stream protocol support'
            'libmodplug: MOD playing library support'
            'libsndfile: sampled sound support'
            'projectm: visual efects support'
            'ffmpeg: FFmpeg engine (include lot of audio formats) support'
            'mplayer: Mplayer enguine (include lot of audio formats) support'
            'libsamplerate: audio filter support'
            'libbs2b: audio filter support'
            'wavpack: WavPack audio support'
            'libsidplayfp: SID audio support'
            'opusfile: OPUS audio support'
            'enca: CUEsheet audio and text encoding support'
            'wildmidi: native MIDI audio support'
            'faad2: native AAC audio support'
            'libgme: video game music format suppoort'
            'libmad: MPEG audio decoder support'
            'libvorbis: Vorbis audio support'
            'libogg: OGG audio support')
provides=('qmmp')
conflicts=('qmmp')
source=('qmmp::svn+svn://svn.code.sf.net/p/qmmp-dev/code/branches/qmmp-1.0')
sha1sums=('SKIP')
install=qmmp-svn.install

pkgver() {
  cd qmmp
  echo "$(cat qmmp.pri | grep QMMP_VERSION | cut -d ' ' -f3).svn.r$(svnversion)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../qmmp \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_DIR=lib
  make
}

package() {
  make -C build DESTDIR="${pkgdir}" install
}