From 05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 19 Dec 2022 23:07:05 +0000 Subject: Making things work --- repo/shared-mime-info/shared-mime-info.xibuild | 30 +++++++++----------------- 1 file changed, 10 insertions(+), 20 deletions(-) (limited to 'repo/shared-mime-info/shared-mime-info.xibuild') diff --git a/repo/shared-mime-info/shared-mime-info.xibuild b/repo/shared-mime-info/shared-mime-info.xibuild index a91f826..221067b 100644 --- a/repo/shared-mime-info/shared-mime-info.xibuild +++ b/repo/shared-mime-info/shared-mime-info.xibuild @@ -3,32 +3,22 @@ NAME="shared-mime-info" DESC="Freedesktop.org Shared MIME Info" -MAKEDEPS="meson ninja itstool xmlto libxml2 glib" -DEPS="toybox glib libxml2 musl pkg-config " +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" -ADDITIONAL=" - https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/shared-mime-info/trunk/MR_162.patch -" -prepare () { - patch -Rp1 -i MR_162.patch +build() { + meson --prefix=/usr \ + -Dupdate-mimedb=false \ + . output + meson compile ${JOBS:+-j ${JOBS}} -C output } -build () { - mkdir build && - cd build && - meson --prefix=/usr \ - -Dupdate-mimedb=false \ - .. && - ninja +check() { + meson test --no-rebuild --print-errorlogs -C output } -package () { - DESTDIR=$PKG_DEST ninja install -} - -postinstall () { - update-mime-database /usr/share/mime +package() { + DESTDIR="$PKG_DEST" meson install --no-rebuild -C output } -- cgit v1.2.1