termux-packages/packages/libmediainfo/build.sh
2022-04-01 15:33:17 +09:00

25 lines
1005 B
Bash

TERMUX_PKG_HOMEPAGE=https://mediaarea.net/en/MediaInfo
TERMUX_PKG_DESCRIPTION="Library for reading information from media files"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_LICENSE_FILE="../../../LICENSE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=22.03
TERMUX_PKG_SRCURL=https://mediaarea.net/download/source/libmediainfo/${TERMUX_PKG_VERSION}/libmediainfo_${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=b92c581d721224b55e9d5652c5ffcc78b26e915b0c792fcb8b3e2222f3ef9cd5
TERMUX_PKG_DEPENDS="libc++, libcurl, libzen, zlib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-shared --enable-static --with-libcurl"
termux_step_pre_configure() {
TERMUX_PKG_SRCDIR="${TERMUX_PKG_SRCDIR}/Project/GNU/Library"
TERMUX_PKG_BUILDDIR="${TERMUX_PKG_SRCDIR}"
cd "${TERMUX_PKG_SRCDIR}"
./autogen.sh
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
termux_step_post_make_install() {
ln -sf libmediainfo.so "${TERMUX_PREFIX}/lib/libmediainfo.so.0"
ln -sf libmediainfo.so "${TERMUX_PREFIX}/lib/libmediainfo.so.0.0"
}