summaryrefslogtreecommitdiff
path: root/repo/glade/glade.xibuild
blob: f0439513804a661f74aee888d3324a2418983e21 (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
#!/bin/sh

NAME="glade"
DESC="User Interface Designer for GTK+ and GNOME"

MAKEDEPS="gtk3 libxml2 itstool intltool python-gobject gobject-introspection meson python gjs"

PKG_VER=3.38.2
SOURCE="https://download.gnome.org/sources/glade/${PKG_VER%.*}/glade-$PKG_VER.tar.xz"

ADDITIONAL="
duplicate-linguas.patch
meson-0.60.patch
"

prepare () {
    apply_patches
}

build() {
	meson --prefix=/usr \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
    # this one index is missing, so copy it from another language
    mkdir output/help/hi/
    cp output/help/en_GB/index.docbook output/help/hi/index.docbook

	DESTDIR="$PKG_DEST" meson install --no-rebuild -C output
}