summaryrefslogtreecommitdiff
path: root/community/cdemu-daemon/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-28 00:01:38 +0000
committerroot <root@rshg054.dnsready.net>2012-03-28 00:01:38 +0000
commita26ce336126d18cde915c2331250b8dfbffc24f8 (patch)
treedd0ee1c89d9c153abfde0b4e7878a2931893ed4c /community/cdemu-daemon/PKGBUILD
parentc8729cab8302ab82e01135a22fb9fa9704f1559b (diff)
Wed Mar 28 00:01:38 UTC 2012
Diffstat (limited to 'community/cdemu-daemon/PKGBUILD')
-rw-r--r--community/cdemu-daemon/PKGBUILD54
1 files changed, 34 insertions, 20 deletions
diff --git a/community/cdemu-daemon/PKGBUILD b/community/cdemu-daemon/PKGBUILD
index e70da39d3..4163ffbc1 100644
--- a/community/cdemu-daemon/PKGBUILD
+++ b/community/cdemu-daemon/PKGBUILD
@@ -1,40 +1,54 @@
-# $Id: PKGBUILD 66730 2012-02-27 20:43:21Z heftig $
-# Maintainer: Mateusz Herych <heniekk@gmail.com>
+# $Id: PKGBUILD 68530 2012-03-26 10:24:56Z schiv $
+# Maintainer: Ray Rashif <schiv@archlinux.org>
+# Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: Charles Lindsay <charles@chaoslizard.org>
pkgname=cdemu-daemon
pkgver=1.5.0
-pkgrel=1
+pkgrel=5
pkgdesc="CD/DVD-ROM device emulator daemon"
arch=('i686' 'x86_64')
-backup=('etc/conf.d/cdemud'
- 'etc/dbus-1/system.d/cdemud-dbus.conf')
url="http://cdemu.sourceforge.net/"
license=('GPL')
-depends=('glib2' 'dbus' 'dbus-glib' 'libdaemon' 'vhba-module' "libmirage=$pkgver" 'libao')
-install=cdemud.install
-source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2
- cdemud.conf cdemud.rc 60-vhba.rules)
+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'
- '2b94bd399873e585e40b2bfd8634f322'
- '340a30ab2c42162b3bd042c74a399219'
- 'f551504552d7693ac79e8e0d302f62b9')
+ '5d9e08255e45ca3c0987329b7920e206'
+ '4bbf42b69133e4e91c1be2c6825fa392'
+ '90a2516639c05737fa10a110a1cba467')
build() {
- cd $srcdir/$pkgname-$pkgver
- ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/$pkgname
+ 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
- install -m 644 -D ../cdemud.conf $pkgdir/etc/conf.d/cdemud
- install -m 755 -D ../cdemud.rc $pkgdir/etc/rc.d/cdemud
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
- # Install udev rule for non-root mounting of iso's
- install -D -m 644 "${srcdir}/60-vhba.rules" "$pkgdir/lib/udev/rules.d/60-vhba.rules"
+ # 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: