core/cdemu-daemon/PKGBUILD

53 lines
1.5 KiB
Bash
Raw Normal View History

2013-11-10 12:41:15 +08:00
# Platform Packages for Chakra, part of chakra-project.org
#
# See https://groups.google.com/forum/?hl=en&fromgroups#!topic/chakra-devel/7F1Ze0zChnM
2013-10-16 05:34:01 +08:00
# & packaging guidelines on http://cdemu.sourceforge.net/about/daemon/
2013-11-10 12:41:15 +08:00
#
# Contributor: abveritas@chakra-project.org
# Maintainer: BrLi <rainman59118[at]Gmail.com>
pkgname=cdemu-daemon
2013-10-16 05:34:01 +08:00
pkgver=2.1.1
pkgrel=3
2013-11-10 12:41:15 +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')
2013-10-16 05:34:01 +08:00
md5sums=('a0ede84ba3278d2886358b4f3fec5e18'
'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
}