# $Id: PKGBUILD 68530 2012-03-26 10:24:56Z schiv $ # Maintainer: Ray Rashif # Contributor: Mateusz Herych # Contributor: Charles Lindsay pkgname=cdemu-daemon pkgver=1.5.0 pkgrel=5 pkgdesc="CD/DVD-ROM device emulator daemon" arch=('i686' 'x86_64') url="http://cdemu.sourceforge.net/" license=('GPL') depends=('dbus' 'vhba-module>=20110915-5' 'libao' "libmirage=$pkgver") optdepends=('alsa-lib: to enable the ALSA audio driver' 'pulseaudio: to enable the PA audio driver') backup=('etc/conf.d/cdemud' 'etc/dbus-1/system.d/cdemud-dbus.conf') install=$pkgname.install source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2" 'cdemud.conf' 'cdemud.rc' 'system.patch') md5sums=('5ba780caa26d855942512b5b3c22405a' '5d9e08255e45ca3c0987329b7920e206' '4bbf42b69133e4e91c1be2c6825fa392' '90a2516639c05737fa10a110a1cba467') build() { cd "$srcdir/$pkgname-$pkgver" # make things Arch-friendly patch -Np1 -i "$srcdir/system.patch" ./configure --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/$pkgname make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install # the init stuff install -Dm644 "$srcdir/cdemud.conf" "$pkgdir/etc/conf.d/cdemud" install -Dm755 "$srcdir/cdemud.rc" "$pkgdir/etc/rc.d/cdemud" # for systemd install -d "$pkgdir/usr/lib/modules-load.d" echo "vhba" > "$pkgdir/usr/lib/modules-load.d/cdemu.conf" } # vim:set ts=2 sw=2 et: