mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 10:57:14 +08:00
38 lines
834 B
Bash
38 lines
834 B
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=cdemu-client
|
|
pkgver=2.0.0
|
|
pkgrel=1
|
|
pkgdesc="Simple command-line client for controlling cdemu-daemon"
|
|
arch=('x86_64')
|
|
url="http://cdemu.sourceforge.net/"
|
|
license=('GPL')
|
|
depends=('python2' 'dbus-python' 'cdemu-daemon')
|
|
makedepends=('intltool' 'cmake')
|
|
conflicts=('cdemu')
|
|
source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2")
|
|
md5sums=('ceeec43270c28ea02c7e8a5a7009f3e0')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
# 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
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver/build"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|