summaryrefslogtreecommitdiff
path: root/pcr/gnome-boxes-libre
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-29 11:19:46 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-29 11:20:38 -0200
commitb24ff2ab2649f0c8bf482f0cdf540de4667b4a04 (patch)
tree1f8eee76d0985c70dd19307f8acee5480508010c /pcr/gnome-boxes-libre
parenta8d24e03f28fd51e47e2053a3bd925a0e7f75c08 (diff)
downloadabslibre-b24ff2ab2649f0c8bf482f0cdf540de4667b4a04.tar.gz
abslibre-b24ff2ab2649f0c8bf482f0cdf540de4667b4a04.tar.bz2
abslibre-b24ff2ab2649f0c8bf482f0cdf540de4667b4a04.zip
fix freedom issue reported by niitotantei => https://labs.parabola.nu/issues/452
Diffstat (limited to 'pcr/gnome-boxes-libre')
-rw-r--r--pcr/gnome-boxes-libre/PKGBUILD44
-rw-r--r--pcr/gnome-boxes-libre/free-distros.patch11
-rw-r--r--pcr/gnome-boxes-libre/gnome-boxes.install17
-rw-r--r--pcr/gnome-boxes-libre/logos.patch39
4 files changed, 111 insertions, 0 deletions
diff --git a/pcr/gnome-boxes-libre/PKGBUILD b/pcr/gnome-boxes-libre/PKGBUILD
new file mode 100644
index 000000000..91a3b41be
--- /dev/null
+++ b/pcr/gnome-boxes-libre/PKGBUILD
@@ -0,0 +1,44 @@
+# Contributor: Daniel Milewski <niitotantei@gmail.com>
+
+_pkgname='gnome-boxes'
+pkgname="$_pkgname-libre"
+pkgver='3.10.2'
+pkgrel='1'
+pkgdesc='A simple GNOME 3 application to access remote or virtual systems, without nonfree system logos'
+arch=('i686' 'x86_64')
+url='https://wiki.gnome.org/Apps/Boxes'
+license=('LGPL')
+depends=('clutter-gtk' 'desktop-file-utils' 'gtk-vnc' 'libosinfo' 'libsoup' 'libtracker-sparql' 'libvirt-glib'
+ 'spice-gtk3')
+makedepends=('gobject-introspection' 'intltool' 'itstool' 'spice-protocol' 'vala')
+optdepends=('qemu-usbredir: virtual machines support')
+provides=("$_pkgname=$pkgver")
+conflicts=("$_pkgname")
+replaces=("$_pkgname")
+install='gnome-boxes.install'
+source=("http://ftp.gnome.org/pub/GNOME/sources/$_pkgname/${pkgver:0:4}/$_pkgname-$pkgver.tar.xz" 'logos.patch'
+ 'free-distros.patch')
+sha256sums=('9e055627cff5f59323bc95ad65ab361fc26328854d5a421bd09c899c466f2ec4'
+ '63d8a7fb5e0d6260d56bd92e9d11f39e9f37c323a261bc822a589b85f760b254'
+ '025e56fff5ae3659abc867ef1b5739a4632c91fa7f10d54d0853e9905355a15f')
+
+prepare() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ patch -Np1 -i "$srcdir/logos.patch"
+
+ patch -Np1 -i "$srcdir/free-distros.patch"
+}
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+}
diff --git a/pcr/gnome-boxes-libre/free-distros.patch b/pcr/gnome-boxes-libre/free-distros.patch
new file mode 100644
index 000000000..d83d2ca4b
--- /dev/null
+++ b/pcr/gnome-boxes-libre/free-distros.patch
@@ -0,0 +1,11 @@
+--- gnome-boxes-3.10.0/data/gnome-boxes-logos-db.xml.original 2013-11-23 13:26:20.013010981 +0100
++++ gnome-boxes-3.10.0/data/gnome-boxes-logos-db.xml 2013-11-23 14:29:33.237567173 +0100
+@@ -2,4 +2,8 @@
+
+ <!-- Please read README.logos for any questions about usage of product logos in Boxes. !-->
+
++ <os id="https://parabolagnulinux.org">
++ <logo>https://projects.parabolagnulinux.org/artwork.git/plain/official-2013/optimized-text/logo.svg</logo>
++ </os>
++
+ </libosinfo>
diff --git a/pcr/gnome-boxes-libre/gnome-boxes.install b/pcr/gnome-boxes-libre/gnome-boxes.install
new file mode 100644
index 000000000..2ceb2ac08
--- /dev/null
+++ b/pcr/gnome-boxes-libre/gnome-boxes.install
@@ -0,0 +1,17 @@
+update() {
+ glib-compile-schemas /usr/share/glib-2.0/schemas
+ update-desktop-database -q
+ gtk-update-icon-cache -f -q -t /usr/share/icons/hicolor
+}
+
+post_install() {
+ update
+}
+
+post_upgrade() {
+ update
+}
+
+post_remove() {
+ update
+}
diff --git a/pcr/gnome-boxes-libre/logos.patch b/pcr/gnome-boxes-libre/logos.patch
new file mode 100644
index 000000000..6fe80a2eb
--- /dev/null
+++ b/pcr/gnome-boxes-libre/logos.patch
@@ -0,0 +1,39 @@
+--- gnome-boxes-3.10.0/data/gnome-boxes-logos-db.xml.original 2013-11-16 22:30:08.198540527 +0100
++++ gnome-boxes-3.10.0/data/gnome-boxes-logos-db.xml 2013-11-16 22:30:12.135269885 +0100
+@@ -2,36 +2,4 @@
+
+ <!-- Please read README.logos for any questions about usage of product logos in Boxes. !-->
+
+- <os id="http://debian.org/debian/1.0">
+- <logo>http://www.debian.org/logos/openlogo-nd.svg</logo>
+- </os>
+-
+- <os id="http://fedoraproject.org/fedora/1">
+- <logo>http://people.gnome.org/~zeeshanak/logos/fedora.svg</logo>
+- </os>
+-
+- <os id="http://opensuse.org/opensuse/10.2">
+- <logo>http://people.gnome.org/~zeeshanak/logos/opensuse.svg</logo>
+- </os>
+-
+- <os id="http://ubuntu.com/ubuntu/4.10">
+- <logo>http://people.gnome.org/~zeeshanak/logos/ubuntu.svg</logo>
+- </os>
+-
+- <os id="http://gnome.org/3.6">
+- <logo>http://people.gnome.org/~zeeshanak/logos/gnome-logo.svg</logo>
+- </os>
+-
+- <os id="http://redhat.com/rhel/4.0">
+- <logo>http://people.gnome.org/~zeeshanak/logos/shadownman-pill.svg</logo>
+- </os>
+-
+- <os id="http://redhat.com/rhel/5.0">
+- <logo>http://people.gnome.org/~zeeshanak/logos/shadownman-pill.svg</logo>
+- </os>
+-
+- <os id="http://redhat.com/rhel/6.0">
+- <logo>http://people.gnome.org/~zeeshanak/logos/shadownman-pill.svg</logo>
+- </os>
+-
+ </libosinfo>