# SliTaz package receipt. PACKAGE="minidlna" VERSION="1.3.0" CATEGORY="network" SHORT_DESC="A simple media server fully compliant with DLNA/UPnP-AV clients." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/minidlna/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="ffmpeg flac jpeg libexif libid3tag libogg libsqlite libvorbis" BUILD_DEPENDS="ffmpeg-dev flac-dev gettext jpeg-dev libav-dev libexif-dev libid3tag-dev libogg-dev libvorbis-dev sqlite-dev" CONFIG_FILES="/etc/minidlna.conf" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/minidlna/files/minidlna/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/minidlna/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --sysconfdir=/etc \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc cp -a $src/minidlna.conf $fs/etc cook_copy_folders sbin }