summaryrefslogtreecommitdiff
path: root/pcr/gnome-boxes-libre/PKGBUILD
blob: 91a3b41be23115671ab0578f070382c707193512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
}