summaryrefslogtreecommitdiff
path: root/extra/esound/PKGBUILD
blob: b6d035b22bb9c43f1b67cba8847cb138c42e2297 (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
# $Id: PKGBUILD 131830 2011-07-16 00:02:10Z dreisner $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=esound
pkgver=0.2.41
pkgrel=2
pkgdesc="Enlightened Sound Daemon"
arch=(i686 x86_64)
license=('LGPL')
depends=('audiofile' 'alsa-lib>=1.0.18')
url="http://www.tux.org/~ricdude/EsounD.html"
provides=("esd=${pkgver}")
replaces=('esd')
conflicts=('esd')
backup=('etc/esd.conf')
options=('!libtool')
source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/0.2/${pkgname}-${pkgver}.tar.bz2
	esd-0.2.38-alsa-drain.patch
	esd)
md5sums=('8d9aad3d94d15e0d59ba9dc0ea990c6c'
         '3de93efcd1bc196a3585e6aef50eac48'
         'a4c76e7c7f75b201ea7ab6fb15b47472')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i "${srcdir}/esd-0.2.38-alsa-drain.patch"
  ./configure --prefix=/usr --sysconfdir=/etc \
              --localstatedir=/var --disable-static \
              --with-audiofile --without-libwrap \
              --enable-alsa --disable-artstest
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/etc/rc.d"
  install -m755 "${srcdir}/esd" "${pkgdir}/etc/rc.d/esd"
}