aboutsummaryrefslogtreecommitdiffstats
path: root/community/sdl2_mixer/APKBUILD
blob: 44feab700fec80188bde42a3ceb80f583ebec828 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sdl2_mixer
pkgver=2.6.2
pkgrel=1
pkgdesc="A simple multi-channel audio mixer"
url="https://github.com/libsdl-org/SDL_mixer"
arch="all"
license="Zlib"
makedepends="
	cmake
	flac-dev
	fluidsynth-dev
	libmikmod-dev
	libmodplug-dev
	libvorbis-dev
	linux-headers
	mpg123-dev
	opusfile-dev
	samurai
	sdl2-dev
	"
subpackages="$pkgname-dev $pkgname-doc"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/libsdl-org/SDL_mixer/archive/refs/tags/release-$pkgver.tar.gz
	vfork-check.patch
	"
builddir="$srcdir/SDL_mixer-release-$pkgver"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

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

sha512sums="
a9d771dd7abab523d8c66c5f355432158df17a857adcc0a77ed7e1e12f5357df391e5fc354bd8f5dc1841297f78ae9d4414ac2235bbfeaabef4c3ca7fda288ee  sdl2_mixer-2.6.2.tar.gz
f2a23937d4508e7aa91cc96abd8126180537723e5fd017a88f0299649676a193e1f3eb9123a5b9fb6e5d1569bd0854b84834e4db0f5b54c0734baafa2e84c04c  vfork-check.patch
"