summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97949ae26c812686f34c396e6906f887303ad887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Jose Riha <jose 1711 gmail com>
# Contributor: Teo Mrnjavac <teo.mrnjavac@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: lh <jarryson@gmail.com>
# Contributor: Devin Cofer <ranguvar{AT]archlinux[DOT}us>

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}}
}