termux-packages/x11-packages/shared-mime-info/build.sh

29 lines
1.2 KiB
Bash
Raw Normal View History

2018-09-10 00:42:26 +02:00
TERMUX_PKG_HOMEPAGE=https://freedesktop.org/Software/shared-mime-info
TERMUX_PKG_DESCRIPTION="Freedesktop.org Shared MIME Info"
TERMUX_PKG_LICENSE="GPL-2.0"
2019-05-17 00:18:48 +02:00
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
2019-10-27 20:48:03 +01:00
TERMUX_PKG_VERSION=1.14
2019-11-18 02:42:37 +01:00
TERMUX_PKG_REVISION=2
2019-09-18 19:02:11 +02:00
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
2019-10-27 20:48:03 +01:00
TERMUX_PKG_SHA256=2029d4d9e21dada5f7f68aaf791df51ea3885c3087c8d46572416b0882f8d7e3
2018-09-10 00:42:26 +02:00
TERMUX_PKG_DEPENDS="coreutils, glib, libxml2"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-update-mimedb ac_cv_func_fdatasync=no"
2019-09-18 19:02:11 +02:00
termux_step_pre_configure() {
NOCONFIGURE=1 bash ./autogen.sh
}
2018-09-10 00:42:26 +02:00
termux_step_post_make_install() {
# fix location of shared-mime-info.pc
if [ -f "${TERMUX_PREFIX}/share/pkgconfig/shared-mime-info.pc" ]; then
2019-09-18 19:02:11 +02:00
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
2018-09-10 00:42:26 +02:00
}
termux_step_create_debscripts() {
2018-09-10 00:42:26 +02:00
cp "${TERMUX_PKG_BUILDER_DIR}/postinst" ./postinst
cp "${TERMUX_PKG_BUILDER_DIR}/postrm" ./postrm
cp "${TERMUX_PKG_BUILDER_DIR}/triggers" ./triggers
}