[arch-commits] Commit in (4 files)

Balló György bgyorgy at archlinux.org
Sat Oct 15 19:25:21 UTC 2016


    Date: Saturday, October 15, 2016 @ 19:25:21
  Author: bgyorgy
Revision: 192313

Move spice-vdagent from AUR with 25 votes

Added:
  spice-vdagent/
  spice-vdagent/trunk/
  spice-vdagent/trunk/PKGBUILD
  spice-vdagent/trunk/spice-vdagent.install

-----------------------+
 PKGBUILD              |   40 ++++++++++++++++++++++++++++++++++++++++
 spice-vdagent.install |    7 +++++++
 2 files changed, 47 insertions(+)

Added: spice-vdagent/trunk/PKGBUILD
===================================================================
--- spice-vdagent/trunk/PKGBUILD	                        (rev 0)
+++ spice-vdagent/trunk/PKGBUILD	2016-10-15 19:25:21 UTC (rev 192313)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: mutantmonkey <aur at mutantmonkey.in>
+
+pkgname=spice-vdagent
+pkgver=0.17.0
+pkgrel=2
+pkgdesc="Spice agent for Linux guests"
+arch=('i686' 'x86_64')
+url="http://www.spice-space.org/"
+license=('GPL')
+depends=('alsa-lib' 'dbus' 'glib2' 'libpciaccess' 'libxfixes' 'libxinerama' 'libxrandr')
+makedepends=('spice-protocol' 'systemd')
+backup=('etc/conf.d/spice-vdagentd')
+install=$pkgname.install
+source=("http://www.spice-space.org/download/releases/$pkgname-$pkgver.tar.bz2")
+sha256sums=('f14a8bd8cdee10641aabd9ba32461a5844eab0fddb2a10c1d31386e7a9f7b33d')
+
+prepare() {
+	cd $pkgname-$pkgver
+	sed -i 's|/lib/udev/rules.d|$(libdir)/udev/rules.d|' Makefile.{am,in}
+	sed -i 's|/etc/sysconfig/spice-vdagentd|/etc/conf.d/spice-vdagentd|
+	        s|/usr/sbin/spice-vdagentd|/usr/bin/spice-vdagentd|' data/spice-vdagentd.service
+	sed -i 's|/etc/sysconfig/spice-vdagentd|/etc/conf.d/spice-vdagentd|' data/spice-vdagentd.1.in
+}
+
+build() {
+	cd $pkgname-$pkgver
+	./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin \
+	            --with-session-info=systemd --with-init-script=systemd
+	make
+}
+
+package() {
+	cd $pkgname-$pkgver
+	make DESTDIR="$pkgdir" install
+	rm -r "$pkgdir/var"
+	install -dm755 "$pkgdir/etc/conf.d/"
+	echo 'SPICE_VDAGENTD_EXTRA_ARGS=""' > "$pkgdir/etc/conf.d/spice-vdagentd"
+}


Property changes on: spice-vdagent/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: spice-vdagent/trunk/spice-vdagent.install
===================================================================
--- spice-vdagent/trunk/spice-vdagent.install	                        (rev 0)
+++ spice-vdagent/trunk/spice-vdagent.install	2016-10-15 19:25:21 UTC (rev 192313)
@@ -0,0 +1,7 @@
+post_install() {
+	systemd-tmpfiles --create "/usr/lib/tmpfiles.d/spice-vdagentd.conf"
+}
+
+post_upgrade() {
+	post_install
+}



More information about the arch-commits mailing list