# Maintainer: Jose Riha # Contributor: Teo Mrnjavac # Contributor: Jan de Groot # Contributor: lh # Contributor: Devin Cofer pkgname=lib32-esd-oss _pkgname=esd-oss pkgver=0.2.41 pkgrel=1 pkgdesc="Enlightened Sound Daemon without ALSA dependence (32-bit)" url="http://www.tux.org/~ricdude/EsounD.html" arch=('x86_64') license=('LGPL') depends=('lib32-audiofile' 'tcp-wrappers') source=(http://ftp.gnome.org/pub/GNOME/sources/esound/0.2/esound-${pkgver}.tar.bz2 esd-0.2.38-alsa-drain.patch esd) md5sums=('8d9aad3d94d15e0d59ba9dc0ea990c6c' '3de93efcd1bc196a3585e6aef50eac48' 'a4c76e7c7f75b201ea7ab6fb15b47472') conflicts=('lib32-esd' 'lib32-esound') options=('!libtool') build() { cd ${srcdir}/esound-${pkgver} patch -Np1 -i ${srcdir}/esd-0.2.38-alsa-drain.patch || return 1 export CC="gcc -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static \ --with-audiofile --with-libwrap --disable-alsa --disable-artstest export LDFLAGS='-lm' make -e } package() { cd ${srcdir}/esound-${pkgver} make DESTDIR=${pkgdir} install install -m755 -d ${pkgdir}/etc/rc.d install -m755 ${srcdir}/esd ${pkgdir}/etc/rc.d/esd mv "${pkgdir}/usr/lib" "${pkgdir}/usr/lib32" rm -rf "${pkgdir}"/{etc,usr/{share,bin,include}} }