PKGBUILD 1.28 KB
Newer Older
1 2 3 4 5
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>

_pkgbasename=sdl_mixer
pkgname=lib32-$_pkgbasename
Samir's avatar
Samir committed
6
pkgver=1.2.12
7
pkgrel=3
8 9 10 11
pkgdesc="A simple multi-channel audio mixer (32-bit)"
arch=('x86_64')
url="http://www.libsdl.org/projects/SDL_mixer/"
license=('LGPL' 'GPL')
12
depends=("$_pkgbasename=$pkgver" 'lib32-sdl>=1.2.12' 'lib32-libvorbis' 'lib32-libmikmod' 'lib32-smpeg')
13 14 15
makedepends=('gcc-multilib')
options=('!libtool')
source=("http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-${pkgver}.tar.gz")
Samir's avatar
Samir committed
16
md5sums=('e03ff73d77a55e3572ad0217131dc4a1')
17 18 19 20 21 22 23 24 25 26 27 28 29 30

build() {
  export CC='gcc -m32'
  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'

  cd "${srcdir}/SDL_mixer-${pkgver}"

  sed -e "/CONFIG_FILE_ETC/s/\/etc\/timidity.cfg/\/etc\/timidity++\/timidity.cfg/" \
      -e "/DEFAULT_PATH/s/\/etc\/timidity/\/etc\/timidity++/" \
      -e "/DEFAULT_PATH2/s/\/usr\/local\/lib\/timidity/\/usr\/lib\/timidity/" \
      -i timidity/config.h

  ./configure \
	--prefix=/usr \
Samir's avatar
Samir committed
31 32
	--libdir=/usr/lib32 \
	--disable-static
33 34 35 36 37 38 39 40 41 42 43
  make
}

package() {
  cd ${srcdir}/SDL_mixer-${pkgver}

  make DESTDIR="${pkgdir}" install
  rm -rf "$pkgdir/usr/include"
  cd "$pkgdir/usr/lib32/" || return 1
  ln -sf libSDL_mixer-1.2.so.10.1 libSDL_mixer-1.2.so.0
}