core/sdl2_mixer/PKGBUILD

39 lines
1.3 KiB
Bash
Raw Normal View History

2013-09-29 23:05:28 +08:00
pkgname=sdl2_mixer
2016-06-21 04:50:55 +08:00
pkgver=2.0.1
pkgrel=1
2013-09-29 23:05:28 +08:00
pkgdesc="A simple multi-channel audio mixer (Version 2)"
2013-11-12 01:43:04 +08:00
arch=('x86_64')
2013-09-29 23:05:28 +08:00
url="http://www.libsdl.org"
license=('MIT')
depends=('sdl2' 'libvorbis' 'libmodplug' 'smpeg2' 'flac')
makedepends=('fluidsynth')
optdepends=('fluidsynth: MIDI software synth, replaces built-in timidity')
source=("http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${pkgver}.tar.gz"
"FindSDL2_mixer.cmake")
2016-06-21 04:50:55 +08:00
sha256sums=('5a24f62a610249d744cbd8d28ee399d8905db7222bf3bdbc8a8b4a76e597695f'
2013-09-29 23:05:28 +08:00
'3910aa85e55ac64c8eb6da69fdd7ed3fab704119339e991f956f1cea19c11973')
2015-10-07 19:48:15 +08:00
prepare() {
cd "${srcdir}/SDL2_mixer-${pkgver}/"
sed -i "s|/etc/timidity|/etc/timidity++|g" timidity/config.h
sed -i "s|/etc/timidity++.cfg|/etc/timidity++/timidity.cfg|g" timidity/config.h
}
2013-09-29 23:05:28 +08:00
build() {
cd "${srcdir}/SDL2_mixer-${pkgver}/"
2015-10-07 19:48:15 +08:00
export CFLAGS+=" ${CFLAGS} -I/usr/include/libmodplug"
2013-09-29 23:05:28 +08:00
./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
2015-10-07 19:48:15 +08:00
install -Dm644 $srcdir/FindSDL2_mixer.cmake ${pkgdir}/usr/share/cmake-3.0/Modules/FindSDL2_mixer.cmake
2013-09-29 23:05:28 +08:00
}