core/cdemu-daemon/PKGBUILD

51 lines
1.4 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
# See https://groups.google.com/forum/?hl=en&fromgroups#!topic/chakra-devel/7F1Ze0zChnM
pkgver=2.0.0
pkgrel=1
2010-05-22 06:07:29 +08:00
pkgdesc="CD/DVD-ROM device emulator daemon"
arch=('x86_64')
backup=('etc/conf.d/cdemu-daemon'
'etc/dbus-1/system.d/cdemu-daemon-dbus.conf')
2010-05-22 06:07:29 +08:00
url="http://cdemu.sourceforge.net/"
license=('GPL')
depends=('glib2' 'dbus' 'dbus-glib' 'libdaemon' 'vhba-module' "libmirage=$pkgver" 'libao')
makedepends=('cmake')
optdepends=('alsa-lib: to enable the ALSA audio driver'
'pulseaudio: to enable the PA audio driver')
install=$pkgname.install
2012-08-29 15:31:09 +08:00
source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
'cdemu-daemon.conf')
md5sums=('8f6ad3a9f758938e1572046bccc30417'
'109d1eb46eb2943e511715611907d1e9')
2010-05-22 06:07:29 +08:00
build() {
2012-09-15 22:40:59 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_LIBEXECDIR=lib/$pkgname
2011-09-15 02:08:41 +08:00
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
2012-09-15 22:40:59 +08:00
make DESTDIR="${pkgdir}" install
2012-09-15 22:40:59 +08:00
install -d "${pkgdir}/usr/lib/modules-load.d"
echo "vhba" > "${pkgdir}/usr/lib/modules-load.d/cdemu.conf"
cd ../..
# Chakra settings
install -Dm644 "${srcdir}/cdemu-daemon.conf" "${pkgdir}/etc/conf.d/cdemu-daemon"
2010-05-22 06:07:29 +08:00
}