2022-12-06 22:00:30 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="shared-mime-info"
|
2023-11-13 22:18:49 +00:00
|
|
|
PKG_VERSION="2.4"
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_LICENSE="GPL-2.0-only"
|
2022-12-06 22:00:30 +00:00
|
|
|
PKG_SITE="https://freedesktop.org/wiki/Software/shared-mime-info/"
|
|
|
|
PKG_URL="https://gitlab.freedesktop.org/xdg/${PKG_NAME}/-/archive/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
|
|
|
PKG_DEPENDS_HOST="toolchain:host glib:host libxml2:host gettext:host itstool:host"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain glib libxml2 gettext shared-mime-info:host"
|
|
|
|
PKG_LONGDESC="The shared-mime-info package contains the core database of common types."
|
|
|
|
PKG_BUILD_FLAGS="-parallel"
|
|
|
|
|
|
|
|
configure_package() {
|
|
|
|
# Sway Support
|
|
|
|
if [ ! "${WINDOWMANAGER}" = "sway" ]; then
|
|
|
|
PKG_BUILD_FLAGS+=" -sysroot"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
PKG_MESON_OPTS_HOST="-Dupdate-mimedb=false"
|
|
|
|
PKG_MESON_OPTS_TARGET="-Dupdate-mimedb=false"
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
# Create /usr/share/mime/mime.cache
|
|
|
|
if [ "${WINDOWMANAGER}" = "sway" ]; then
|
|
|
|
${TOOLCHAIN}/bin/update-mime-database ${INSTALL}/usr/share/mime
|
|
|
|
fi
|
|
|
|
}
|