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

NAME="libgcab"
DESC="A GObject library to create cabinet files"

MAKEDEPS="meson gobject-introspection glib vala gtk2"

PKG_VER=1.5
SOURCE="https://download.gnome.org/sources/gcab/$PKG_VER/gcab-$PKG_VER.tar.xz"

prepare () {
    # trick it into thinking its a git repo
    git init .
}

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

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$PKG_DEST" meson install --no-rebuild -C output
}