#Packager: Panagiotis Papasotiriou pkgname=SDL2_mixer pkgver=2.6.3 pkgrel=1pp source=("https://github.com/libsdl-org/SDL_mixer/releases/download/release-$pkgver/$pkgname-$pkgver.tar.gz") sourcetemplate=http://people.salixos.org/papasot/salix/$pkgname url="https://github.com/libsdl-org/SDL_mixer" docs=("Readme.txt CHANGES.txt") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "SDL2_mixer (SDL2 multi-channel audio mixer library)" "This is a simple multi-channel audio mixer library. It supports" "8 channels of 16 bit stereo audio, plus a single channel of music." "The library can load FLAC, MIDI, MOD, MP3, Ogg, Opus, VOC, and WAV" "format audio." "" "HomePage: https://github.com/libsdl-org/SDL_mixer" ) build() { cd $startdir/src/$pkgname-$pkgver mv README.txt Readme.txt mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DCMAKE_BUILD_TYPE=Release .. make -j $numjobs || exit 1 make install DESTDIR=$startdir/pkg cd .. }