core/cdemu-client/PKGBUILD

38 lines
834 B
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-client
pkgver=2.0.0
pkgrel=1
2010-05-22 06:07:29 +08:00
pkgdesc="Simple command-line client for controlling cdemu-daemon"
arch=('x86_64')
2010-05-22 06:07:29 +08:00
url="http://cdemu.sourceforge.net/"
license=('GPL')
2010-12-19 06:20:00 +08:00
depends=('python2' 'dbus-python' 'cdemu-daemon')
makedepends=('intltool' 'cmake')
2010-05-22 06:07:29 +08:00
conflicts=('cdemu')
2012-08-29 15:31:09 +08:00
source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2")
md5sums=('ceeec43270c28ea02c7e8a5a7009f3e0')
2010-05-22 06:07:29 +08:00
build() {
2012-08-29 15:31:09 +08:00
cd "$srcdir/$pkgname-$pkgver"
2011-09-03 04:25:31 +08:00
# python2 fix
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' src/cdemu
mkdir build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
2011-09-03 04:25:31 +08:00
make
}
package() {
cd "$srcdir/$pkgname-$pkgver/build"
2012-08-29 15:31:09 +08:00
make DESTDIR="$pkgdir" install
2010-05-22 06:07:29 +08:00
}
2012-08-29 15:31:09 +08:00