summaryrefslogtreecommitdiff
path: root/repo/shared-mime-info/shared-mime-info.xibuild
blob: 221067bcc3d3613310dfb8a1ce4da0bca699c826 (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
#!/bin/sh

NAME="shared-mime-info"
DESC="Freedesktop.org Shared MIME Info"

MAKEDEPS="meson itstool xmlto libxml2 glib"

PKG_VER=2.2
SOURCE="https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/$PKG_VER/shared-mime-info-$PKG_VER.tar.gz"

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

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

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