mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 12:34:37 +08:00
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
pkgname=cdemu-client
|
|
pkgver=3.0.1
|
|
pkgrel=1
|
|
pkgdesc="Simple command-line client for controlling cdemu-daemon"
|
|
arch=('x86_64')
|
|
url=("http://cdemu.sourceforge.net/")
|
|
license=('GPL')
|
|
depends=('python2' 'python2-dbus' 'cdemu-daemon')
|
|
makedepends=('intltool' 'cmake')
|
|
source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2")
|
|
md5sums=('d3345a893788748b8669a66ff8c6b0d6')
|
|
|
|
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
|
|
}
|