shared-mime-info: update to 2.0
This commit is contained in:
parent
a3d6f93fdd
commit
bf96f29ac0
@ -2,24 +2,10 @@ TERMUX_PKG_HOMEPAGE=https://freedesktop.org/Software/shared-mime-info
|
||||
TERMUX_PKG_DESCRIPTION="Freedesktop.org Shared MIME Info"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.15
|
||||
TERMUX_PKG_REVISION=14
|
||||
TERMUX_PKG_SRCURL=https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/Release-${TERMUX_PKG_VERSION//./-}/shared-mime-info-Release-${TERMUX_PKG_VERSION//./-}.tar.gz
|
||||
TERMUX_PKG_SHA256=42d7fca08c2856ddf71743fad96afd2fd363eabf0b0dc67adc2da07a0e7f50a8
|
||||
TERMUX_PKG_VERSION=2.0
|
||||
TERMUX_PKG_SRCURL=https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/${TERMUX_PKG_VERSION}/shared-mime-info-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=0884a57f5fb10dfce146312f6d5826f767e47863d8f543ab4ec0228336e468f8
|
||||
TERMUX_PKG_DEPENDS="coreutils, glib, libxml2"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-update-mimedb ac_cv_func_fdatasync=no"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
NOCONFIGURE=1 bash ./autogen.sh
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
# fix location of shared-mime-info.pc
|
||||
if [ -f "${TERMUX_PREFIX}/share/pkgconfig/shared-mime-info.pc" ]; then
|
||||
mkdir -p "${TERMUX_PREFIX}/lib/pkgconfig"
|
||||
mv -f "${TERMUX_PREFIX}/share/pkgconfig/shared-mime-info.pc" "${TERMUX_PREFIX}/lib/pkgconfig/shared-mime-info.pc"
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_create_debscripts() {
|
||||
cp "${TERMUX_PKG_BUILDER_DIR}/postinst" ./postinst
|
||||
|
@ -3,12 +3,12 @@ set -e
|
||||
PREFIX="/data/data/com.termux/files/usr"
|
||||
|
||||
if [ "${1}" = "triggered" ]; then
|
||||
if [ -x "${PREFIX}/bin/update-mime-database" ]; then
|
||||
update-mime-database "${PREFIX}/share/mime"
|
||||
fi
|
||||
exit 0
|
||||
if [ -x "${PREFIX}/bin/update-mime-database" ]; then
|
||||
update-mime-database "${PREFIX}/share/mime"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -x "${PREFIX}/bin/update-mime-database" ]; then
|
||||
update-mime-database "${PREFIX}/share/mime"
|
||||
update-mime-database "${PREFIX}/share/mime"
|
||||
fi
|
||||
|
@ -1,11 +1,13 @@
|
||||
#!/data/data/com.termux/files/usr/bin/sh
|
||||
#!/data/data/com.termux/files/usr/bin/bash
|
||||
set -e
|
||||
PREFIX="/data/data/com.termux/files/usr"
|
||||
|
||||
if [ "${1}" = purge ]; then
|
||||
MIMEDIR="${PREFIX}/share/mime"
|
||||
if [ -e "${MIMEDIR}" ]; then
|
||||
cd "${MIMEDIR}" && rm -rf $(ls |grep -v ^packages$)
|
||||
rmdir --ignore-fail-on-non-empty "${MIMEDIR}"
|
||||
fi
|
||||
MIMEDIR="${PREFIX}/share/mime"
|
||||
|
||||
if [ -d "${MIMEDIR}" ]; then
|
||||
rm -f "${MIMEDIR}"/{globs,globs2,icons,treemagic,generic-icons,types,magic,XMLnamespaces,subclasses,aliases,mime.cache}
|
||||
rm -rf "${MIMEDIR}"/{application,audio,image,inode,message,model,multipart,text,video,x-content,x-epoc}
|
||||
rmdir --ignore-fail-on-non-empty "${MIMEDIR}"
|
||||
fi
|
||||
fi
|
||||
|
@ -1,6 +1,5 @@
|
||||
diff -uNr shared-mime-info-1.9/update-mime-database.c shared-mime-info-1.9.mod/update-mime-database.c
|
||||
--- shared-mime-info-1.9/update-mime-database.c 2017-02-11 19:26:13.000000000 +0200
|
||||
+++ shared-mime-info-1.9.mod/update-mime-database.c 2018-06-23 14:06:11.713617726 +0300
|
||||
--- shared-mime-info/src/update-mime-database.c
|
||||
+++ shared-mime-info/src/update-mime-database.c
|
||||
@@ -2168,7 +2168,7 @@
|
||||
|
||||
env = getenv("XDG_DATA_DIRS");
|
||||
|
Loading…
Reference in New Issue
Block a user