[arch-commits] Commit in spice-vdagent/repos (2 files)
Brett Cornwall
ainola at gemini.archlinux.org
Sat Feb 12 03:58:47 UTC 2022
Date: Saturday, February 12, 2022 @ 03:58:47
Author: ainola
Revision: 1132396
archrelease: copy trunk to community-testing-x86_64
Added:
spice-vdagent/repos/community-testing-x86_64/
spice-vdagent/repos/community-testing-x86_64/PKGBUILD
(from rev 1132395, spice-vdagent/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: spice-vdagent/repos/community-testing-x86_64/PKGBUILD (from rev 1132395, spice-vdagent/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-02-12 03:58:47 UTC (rev 1132396)
@@ -0,0 +1,42 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: mutantmonkey <aur at mutantmonkey.in>
+
+pkgname=spice-vdagent
+pkgver=0.22.0
+pkgrel=1
+pkgdesc="Spice agent for Linux guests"
+arch=('x86_64')
+url="https://www.spice-space.org/"
+license=('GPL')
+depends=('alsa-lib' 'dbus' 'glib2' 'gtk3' 'libdrm' 'libpciaccess' 'libxfixes' 'libxinerama' 'libxrandr' 'systemd')
+makedepends=('spice-protocol' 'git')
+checkdepends=('procps-ng')
+backup=('etc/conf.d/spice-vdagentd')
+source=("https://www.spice-space.org/download/releases/$pkgname-$pkgver.tar.bz2")
+sha256sums=('553597a2ee3dcecd687db3fd92c6b6bb460260a53879d914ae9619ce81a8fb93')
+
+prepare() {
+ cd $pkgname-$pkgver
+ 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
+}
+
+check() {
+ make -C $pkgname-$pkgver check || : # test-session-info fails
+}
+
+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"
+}
More information about the arch-commits
mailing list