summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1db15a699b21c2f4b28a6b8fb7924b1b79f94b89 (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
_name=qmmp
pkgname=${_name}-1
pkgver=1.6.6
pkgrel=1
pkgdesc="Qt based audio-player (1.x branch)"
arch=('x86_64')
url="https://qmmp.ylsoftware.com"
license=('GPL-2.0-or-later' 'CC-BY-NC-SA-4.0')
provides=("${_name}=${pkgver}")

depends=(
    'alsa-lib' 'curl' 'desktop-file-utils' 'hicolor-icon-theme' 'libmad' 'libvorbis'
    'libogg' 'libxkbcommon-x11' 'taglib' 'xdg-utils' 'qt5-base'
)
makedepends=(
    'cmake' 'flac' 'jack' 'libmpcdec' 'pipewire' 'pulseaudio' 'ffmpeg' 'libcdio-paranoia'
    'libcddb' 'libmms' 'libsamplerate' 'libmodplug' 'libsndfile' 'wavpack' 'mpg123' 'mesa'
    'projectm' 'faad2' 'libgme' 'libsidplayfp' 'opusfile>=0.12' 'wildmidi' 'qt5-tools'
)
optdepends=(
    'mpg123: to play MP3 files'
    'flac: native FLAC support'
    'jack: JACK sound output'
    'libmpcdec: Musepack support'
    'pulseaudio: PulseAudio output'
    'pipewire: pipewire support'
    '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'
    'faad2: ADTS AAC support'
    'libgme: support for chiptunes from various platforms'
    'libsidplayfp: C64 music support'
    'opusfile: Opus support'
    'wildmidi: MIDI support'
    'ffmpeg' 'libsamplerate' 'wavpack'
)

_snapshot="${_name}-${pkgver}"
source=("${url}/files/${_name}/${pkgver%.*}/${_snapshot}.tar.bz2")
sha256sums=('2363877a876cd26520e84b0711ae1fa4d2ca8c7115a073946832989a86c68f52')

build() {
    cmake -B "build" -S "${_snapshot}" \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DUSE_HAL:BOOL=FALSE

    cmake --build "build"
}

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