blob: 24ce775b8c5011874535f0561df85fdd86037aa1 (
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
|
# Maintainer: Vojket <vojket@protonmail.com>
pkgname=sdl3_mixer-git
pkgver=r1879.e32ba24
pkgrel=1
pkgdesc="A simple multi-channel audio mixer (Version 3)"
arch=('x86_64')
url="https://github.com/libsdl-org/SDL_mixer"
license=('zlib')
depends=('sdl3' 'libvorbis' 'libmodplug' 'mpg123' 'flac' 'opusfile')
makedepends=('fluidsynth' 'git')
optdepends=('fluidsynth: MIDI software synth, replaces built-in timidity')
source=("git+https://github.com/libsdl-org/SDL_mixer")
sha512sums=('SKIP')
provides=('sdl3_mixer')
conflicts=('sdl3_mixer')
pkgver() {
cd "${srcdir}/SDL_mixer"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "${srcdir}/SDL_mixer"
cmake -B build -D CMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
cd "${srcdir}/SDL_mixer"
DESTDIR="${pkgdir}" cmake --install build
}
|