summaryrefslogtreecommitdiff
path: root/community/cdemu-daemon/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-03-28 10:54:32 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-03-28 10:54:32 -0300
commit6aa1c22fe01ff4df6c5f75fd04d551b53f7df389 (patch)
tree3aa1745b2e6a8a2ee8f6e8a44ca6330d9bc62065 /community/cdemu-daemon/PKGBUILD
parentd41442b9f2dccbf8c7a283391e2bc3fe8b29bf07 (diff)
parenta26ce336126d18cde915c2331250b8dfbffc24f8 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-testing/vhba-module/PKGBUILD community/cdemu-daemon/PKGBUILD community/luakit/PKGBUILD gnome-unstable/glib2/PKGBUILD gnome-unstable/gthumb/PKGBUILD gnome-unstable/libgnomekbd/PKGBUILD multilib/lib32-e2fsprogs/PKGBUILD multilib/lib32-freetype2/PKGBUILD multilib/lib32-gnutls/PKGBUILD multilib/lib32-krb5/PKGBUILD multilib/lib32-libsm/PKGBUILD multilib/lib32-libxcursor/PKGBUILD multilib/lib32-libxmu/PKGBUILD multilib/lib32-libxrender/PKGBUILD multilib/lib32-libxt/PKGBUILD multilib/lib32-libxv/PKGBUILD multilib/lib32-libxvmc/PKGBUILD multilib/lib32-mpg123/PKGBUILD
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 1b25bd314..96197e23f 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' 'mips64el')
-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: