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-02-25 00:39:48 +00:00
|
|
|
PKG_VERSION="2.2"
|
|
|
|
PKG_SHA256="418c480019d9865f67f922dfb88de00e9f38bf971205d55cdffab50432919e61"
|
|
|
|
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
|
|
|
|
}
|