summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2ffbb34147adcb2a39505de995c6e680c8010e8 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Contributor: Mark Weiman <mark dot weiman at markzz dot com>
# Contributor: Kerrick Staley <mail@kerrickstaley.com>
# Contributor: Thijs Vermeir <thijsvermeir@gmail.com>
# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>

pkgname=jhbuild
pkgver=3.38.0.r0.g30ef98f3
pkgrel=3
pkgdesc='Tool to build the whole GNOME desktop from sources'
arch=(any)
url='https://wiki.gnome.org/Projects/Jhbuild'
license=(GPL)
depends=(python git)
makedepends=(yelp-tools)
optdepends=('subversion: fetch subversion repositories'
            'cvs: fetch CVS repositories'
            'bzr: fetch Bazaar repositories'
            'mercurial: fetch Mercurial repositories'
            'darcs: fetch Darcs repositories')
_commit=30ef98f3
source=("$pkgname::git+https://gitlab.gnome.org/GNOME/jhbuild.git#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd $pkgname
}

build() {
  cd $pkgname
  ./autogen.sh --prefix=/usr
  make
}

check() {
  cd $pkgname
  make -k check
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
  install -Dm644 examples/sample.jhbuildrc "$pkgdir/usr/share/jhbuild/examples/sample.jhbuildrc"
  install -Dm644 examples/wayland.jhbuildrc "$pkgdir/usr/share/jhbuild/examples/wayland.jhbuildrc"
  install -Dm644 contrib/jhbuild_completion.bash "$pkgdir/usr/share/bash-completion/completions/jhbuild"
  sed -i "s|$srcdir/$pkgname|$HOME/jhbuild|g" "$pkgdir"/usr/bin/jhbuild
}

# 'jhbuild sysdeps --install' should install all extra dependencies,
# here is a list of packages that fail to install for some reason,
# as detailed below
depends+=(

     # at AUR, required by 'jhbuild sysdeps'
    plymouth

     # from official repositories, but not installed by 'jhbuild sysdeps'
    spice-protocol
    gtk-sharp-2
    libevent

     # other reasons
    unicode-character-database # required by ibus
)