PKGBUILD 1.04 KB
Newer Older
1 2 3 4 5
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>

_pkgbasename=sdl2_mixer
pkgname=lib32-$_pkgbasename
pkgver=2.0.0
Giuseppe Cala's avatar
Giuseppe Cala committed
6
pkgrel=3
7
pkgdesc="A simple multi-channel audio mixer (Version 2, 32-bit)"
8
arch=('x86_64')
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
url="http://www.libsdl.org"
license=('MIT')
depends=('lib32-sdl2' 'lib32-libvorbis' 'lib32-libmodplug' 'lib32-smpeg2' 'lib32-flac' $_pkgbasename=$pkgver)
makedepends=('lib32-fluidsynth' 'gcc-multilib')
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")
sha256sums=('a8ce0e161793791adeff258ca6214267fdd41b3c073d2581cd5265c8646f725b')

build() {
  cd "${srcdir}/SDL2_mixer-${pkgver}/"
  
  export CC="gcc -m32"
  export CXX="g++ -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  
Giuseppe Cala's avatar
Giuseppe Cala committed
25 26 27
  ./configure --disable-static \
              --prefix=/usr \
              --libdir=/usr/lib32
28 29 30 31 32 33 34 35 36
  make
}

package() {
  cd "${srcdir}/SDL2_mixer-${pkgver}/"
  make DESTDIR="${pkgdir}/" install
  rm -rf "${pkgdir}"/usr/{include,share,bin}
}