[arch-commits] Commit in cdemu-client/repos (3 files)
Jan Steffens
heftig at archlinux.org
Mon Oct 10 12:08:51 UTC 2016
Date: Monday, October 10, 2016 @ 12:08:50
Author: heftig
Revision: 191870
archrelease: copy trunk to community-testing-any
Added:
cdemu-client/repos/community-testing-any/
cdemu-client/repos/community-testing-any/PKGBUILD
(from rev 191869, cdemu-client/trunk/PKGBUILD)
cdemu-client/repos/community-testing-any/cdemu-client.install
(from rev 191869, cdemu-client/trunk/cdemu-client.install)
----------------------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
cdemu-client.install | 11 +++++++++++
2 files changed, 57 insertions(+)
Copied: cdemu-client/repos/community-testing-any/PKGBUILD (from rev 191869, cdemu-client/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2016-10-10 12:08:50 UTC (rev 191870)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Mateusz Herych <heniekk at gmail.com>
+# Contributor: Charles Lindsay <charles at chaoslizard.org>
+
+pkgname=cdemu-client
+pkgver=3.0.3
+pkgrel=1
+pkgdesc="Simple command-line client for controlling cdemu-daemon"
+arch=(any)
+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")
+sha256sums=('a917e1d7c6cb652e0daeb992441261c62e6e77731a41f09a8e407c10d83ad2ad')
+
+prepare() {
+ mkdir build
+ cd $pkgname-$pkgver
+
+ # python2 fix
+ sed -i '1s|^#!.*python$|&2|' src/cdemu
+
+ # fix text domain
+ sed -i '/^project /s/cdemu/&-client/' CMakeLists.txt
+
+ # bash completions
+ sed -e 's|${CMAKE_INSTALL_SYSCONFDIR}/bash_completion.d|${CMAKE_INSTALL_DATADIR}/bash-completion/completions|g' \
+ -e '/FILES data\/cdemu-bash-completion.sh/aRENAME cdemu' \
+ -i CMakeLists.txt
+}
+
+build() {
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
Copied: cdemu-client/repos/community-testing-any/cdemu-client.install (from rev 191869, cdemu-client/trunk/cdemu-client.install)
===================================================================
--- community-testing-any/cdemu-client.install (rev 0)
+++ community-testing-any/cdemu-client.install 2016-10-10 12:08:50 UTC (rev 191870)
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list