mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 03:54:36 +08:00
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Platform Packages for Chakra, part of chakra-project.org
|
|
# Contributor: abveritas@chakra-project.org
|
|
# Maintainer: BrLi <rainman59118[at]gmail.com>
|
|
|
|
pkgname=cdemu-client
|
|
pkgver=2.1.1
|
|
pkgrel=3
|
|
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')
|
|
source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2")
|
|
md5sums=('e3062659481b804d12fac58ad64316a0')
|
|
|
|
prepare() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
msg 'python2 fix'
|
|
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' src/cdemu
|
|
|
|
msg 'bash completion fix'
|
|
sed -i CMakeLists.txt -e "s|DESTINATION \${CMAKE_INSTALL_SYSCONFDIR}/bash_completion.d|DESTINATION \${CMAKE_INSTALL_DATADIR}/bash-completion/completions|"
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
[[ -d build ]] && rm -rf build ; mkdir build
|
|
cd build
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver/build"
|
|
make DESTDIR="$pkgdir" install
|
|
rm -f "${pkgdir}"/usr/share/applications/cdemu-client.desktop
|
|
}
|