37375312b9
In issue https://github.com/termux/termux-packages/issues/6160 I have found that community repo "its-pointless.github.io" specifies us as maintainer for its packages. This is NOT TRUE and potentially misleads people using these packages. Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral and not specify maintainer. So all packages now have to override it to the correct value. [skip ci] %ci:no-build
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/azatoth/minidlna
|
|
TERMUX_PKG_DESCRIPTION="A server software with the aim of being fully compliant with DLNA/UPnP-AV clients"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=1.2.1
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=http://deb.debian.org/debian/pool/main/m/minidlna/minidlna_${TERMUX_PKG_VERSION}+dfsg.orig.tar.xz
|
|
TERMUX_PKG_SHA256=72f688c4dd0412fb7a9389bf4ade3bad773924eae9cb31f510440414af3785a0
|
|
TERMUX_PKG_DEPENDS="ffmpeg, libexif, libflac, libid3tag, libjpeg-turbo, libsqlite, libvorbis"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
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
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
|
|
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
|
|
if [ "\$1" != "remove" ]; then
|
|
exit 0
|
|
fi
|
|
rm -rf $TERMUX_PREFIX/var/cache/minidlna
|
|
EOF
|
|
}
|