-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD
52 lines (46 loc) · 1.16 KB
/
PKGBUILD
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
pkgname=clownaudio-git
pkgver=r430.4a508d0
pkgrel=1
pkgdesc='Stereo audio engine supporting various formats'
arch=('any')
url='https://github.com/Clownacy/clownaudio'
license=('zlib', 'MIT', 'LGPL2', 'custom')
depends=(
'libvorbis'
'flac'
'opusfile'
)
makedepends=('cmake')
source=("git+https://github.com/Clownacy/clownaudio.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/clownaudio"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p "${srcdir}/clownaudio/build"
}
build() {
cd "${srcdir}/clownaudio/build"
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DCLOWNAUDIO_LIBVORBIS=ON \
-DCLOWNAUDIO_STB_VORBIS=OFF \
-DCLOWNAUDIO_DR_MP3=ON \
-DCLOWNAUDIO_LIBOPUS=ON \
-DCLOWNAUDIO_LIBFLAC=ON \
-DCLOWNAUDIO_DR_FLAC=OFF \
-DCLOWNAUDIO_DR_WAV=ON \
-DCLOWNAUDIO_LIBSNDFILE=OFF \
-DCLOWNAUDIO_LIBOPENMPT=OFF \
-DCLOWNAUDIO_LIBXMPLITE=ON \
-DCLOWNAUDIO_PXTONE=ON \
-DCLOWNAUDIO_SNES_SPC=ON \
-DCLOWNAUDIO_BACKEND=miniaudio
make
}
package() {
make -C "${srcdir}/clownaudio/build" DESTDIR="$pkgdir" install
}