mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:34:36 +08:00
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=sdl2_mixer
|
|
pkgver=2.0.0
|
|
pkgrel=3
|
|
pkgdesc="A simple multi-channel audio mixer (Version 2)"
|
|
arch=('x86_64')
|
|
url="http://www.libsdl.org"
|
|
license=('MIT')
|
|
depends=('sdl2' 'libvorbis' 'libmodplug' 'smpeg2' 'flac')
|
|
makedepends=('fluidsynth')
|
|
optdepends=('fluidsynth: MIDI software synth, replaces built-in timidity')
|
|
options=(!libtool)
|
|
source=("http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${pkgver}.tar.gz"
|
|
"FindSDL2_mixer.cmake")
|
|
sha256sums=('a8ce0e161793791adeff258ca6214267fdd41b3c073d2581cd5265c8646f725b'
|
|
'3910aa85e55ac64c8eb6da69fdd7ed3fab704119339e991f956f1cea19c11973')
|
|
|
|
build() {
|
|
cd "${srcdir}/SDL2_mixer-${pkgver}/"
|
|
./configure --disable-static --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/SDL2_mixer-${pkgver}/"
|
|
make DESTDIR="${pkgdir}/" install
|
|
install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
# we can remove the following when provided directly by cmake
|
|
install -Dm644 $srcdir/FindSDL2_mixer.cmake ${pkgdir}/usr/share/cmake-2.8/Modules/FindSDL2_mixer.cmake
|
|
}
|
|
|