core/cdemu-daemon/PKGBUILD

47 lines
1.5 KiB
Bash
Raw Normal View History

#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
2010-05-22 06:07:29 +08:00
pkgname=cdemu-daemon
2012-08-29 15:31:09 +08:00
pkgver=1.5.0
pkgrel=10
2010-05-22 06:07:29 +08:00
pkgdesc="CD/DVD-ROM device emulator daemon"
arch=('x86_64')
2010-05-22 06:07:29 +08:00
backup=('etc/conf.d/cdemud'
'etc/dbus-1/system.d/cdemud-dbus.conf')
url="http://cdemu.sourceforge.net/"
license=('GPL')
2012-08-29 15:31:09 +08:00
depends=('glib2' 'dbus' 'dbus-glib' 'libdaemon' 'vhba-module' "libmirage=$pkgver" 'libao' 'systemd-units')
optdepends=('alsa-lib: to enable the ALSA audio driver'
'pulseaudio: to enable the PA audio driver')
2012-08-29 15:31:09 +08:00
source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
'cdemud.conf'
'cdemu-daemon.service')
2012-08-29 15:31:09 +08:00
md5sums=('5ba780caa26d855942512b5b3c22405a'
'2edf08fc6c773813084ca7ba4e07221f'
'be9a8f50da3f42129c0a0e3dea8cd56c')
2010-05-22 06:07:29 +08:00
build() {
2012-09-15 22:40:59 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2012-08-29 15:31:09 +08:00
./configure --prefix=/usr \
--sysconfdir=/etc \
2012-09-15 22:40:59 +08:00
--libexecdir=/usr/lib/${pkgname}
2011-09-15 02:08:41 +08:00
make
}
package() {
2012-09-15 22:40:59 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}/cdemud.conf" "${pkgdir}/etc/conf.d/cdemud"
install -d "${pkgdir}/usr/lib/modules-load.d"
echo "vhba" > "${pkgdir}/usr/lib/modules-load.d/cdemu.conf"
# for systemd
2012-09-15 22:40:59 +08:00
install -Dm644 "${srcdir}/cdemu-daemon.service" \
"${pkgdir}/usr/lib/systemd/system/cdemu-daemon.service"
echo "SystemdService=cdemu-daemon.service" >> \
2012-09-15 22:40:59 +08:00
"${pkgdir}/usr/share/dbus-1/system-services/net.sf.cdemu.CDEMUD_Daemon.service"
2010-05-22 06:07:29 +08:00
}