core/cdemu-client/PKGBUILD

36 lines
924 B
Bash
Raw Normal View History

# Platform Packages for Chakra, part of chakra-project.org
# Contributor: abveritas@chakra-project.org
# Maintainer: BrLi <rainman59118[at]gmail.com>
2010-05-22 06:07:29 +08:00
pkgname=cdemu-client
2013-10-16 05:34:18 +08:00
pkgver=2.1.1
pkgrel=2
2010-05-22 06:07:29 +08:00
pkgdesc="Simple command-line client for controlling cdemu-daemon"
arch=('x86_64')
url=("http://cdemu.sourceforge.net/")
2010-05-22 06:07:29 +08:00
license=('GPL')
2010-12-19 06:20:00 +08:00
depends=('python2' 'dbus-python' 'cdemu-daemon')
makedepends=('intltool' 'cmake')
2012-08-29 15:31:09 +08:00
source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2")
2013-10-16 05:34:18 +08:00
md5sums=('e3062659481b804d12fac58ad64316a0')
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
rm -f "${pkgdir}"/usr/share/applications/cdemu-client.desktop
2010-05-22 06:07:29 +08:00
}