2022-03-08 01:27:27 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/minidlna/
|
2020-11-06 00:08:34 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="A server software with the aim of being fully compliant with DLNA/UPnP-AV clients"
|
2022-03-08 01:27:27 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0, BSD 3-Clause"
|
|
|
|
TERMUX_PKG_LICENSE_FILE="COPYING, LICENCE.miniupnpd"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-03-08 01:27:27 +01:00
|
|
|
TERMUX_PKG_VERSION=1.3.1
|
|
|
|
TERMUX_PKG_SRCURL=https://git.code.sf.net/p/minidlna/git.git
|
|
|
|
TERMUX_PKG_GIT_BRANCH=v${TERMUX_PKG_VERSION//./_}
|
2020-11-06 00:08:34 +01:00
|
|
|
TERMUX_PKG_DEPENDS="ffmpeg, libexif, libflac, libid3tag, libjpeg-turbo, libsqlite, libvorbis"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2020-11-06 18:28:09 +01:00
|
|
|
|
|
|
|
TERMUX_PKG_CONFFILES="etc/minidlna.conf"
|
|
|
|
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--disable-static
|
|
|
|
--with-log-path=$TERMUX_PREFIX/var/log
|
|
|
|
--with-db-path=$TERMUX_PREFIX/var/cache/minidlna
|
|
|
|
"
|
2020-11-06 00:08:34 +01:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
./autogen.sh
|
|
|
|
}
|
2020-11-06 18:28:09 +01:00
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
install -Dm600 -t $TERMUX_PREFIX/etc minidlna.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_create_debscripts() {
|
|
|
|
cat <<- EOF > ./postinst
|
|
|
|
#!$TERMUX_PREFIX/bin/sh
|
|
|
|
mkdir -p $TERMUX_PREFIX/var/cache/minidlna
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat <<- EOF > ./prerm
|
|
|
|
#!$TERMUX_PREFIX/bin/sh
|
2021-09-10 18:33:36 +02:00
|
|
|
if [ "$TERMUX_PACKAGE_FORMAT" != "pacman" ] && [ "\$1" != "remove" ]; then
|
2020-11-06 18:28:09 +01:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
rm -rf $TERMUX_PREFIX/var/cache/minidlna
|
|
|
|
EOF
|
|
|
|
}
|