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

25 lines
1.1 KiB
Bash
Raw Normal View History

2018-09-10 00:42:26 +02:00
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_HOMEPAGE=https://freedesktop.org/Software/shared-mime-info
TERMUX_PKG_DESCRIPTION="Freedesktop.org Shared MIME Info"
2018-10-03 13:14:11 +02:00
TERMUX_PKG_VERSION=1.10
2018-09-10 00:42:26 +02:00
TERMUX_PKG_SRCURL=https://freedesktop.org/~hadess/shared-mime-info-${TERMUX_PKG_VERSION}.tar.xz
2018-10-03 13:14:11 +02:00
TERMUX_PKG_SHA256=c625a83b4838befc8cafcd54e3619946515d9e44d63d61c4adf7f5513ddfbebf
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"
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" || exit 1
mv -f "${TERMUX_PREFIX}/share/pkgconfig/shared-mime-info.pc" "${TERMUX_PREFIX}/lib/pkgconfig/shared-mime-info.pc" || exit 1
fi
}
termux_step_create_debscripts()
{
cp "${TERMUX_PKG_BUILDER_DIR}/postinst" ./postinst
cp "${TERMUX_PKG_BUILDER_DIR}/postrm" ./postrm
cp "${TERMUX_PKG_BUILDER_DIR}/triggers" ./triggers
}