wok annotate minidlna/receipt @ rev 25539

Up perl-test-compile (3.1.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 09 12:11:13 2023 +0000 (22 months ago)
parents ad0bc3efbf37
children d3556b8f5c3d
rev   line source
pascal@17469 1 # SliTaz package receipt.
pascal@17469 2
pascal@17469 3 PACKAGE="minidlna"
Hans-G?nter@24906 4 VERSION="1.3.0"
pascal@17469 5 CATEGORY="network"
Hans-G?nter@21442 6 SHORT_DESC="A simple media server fully compliant with DLNA/UPnP-AV clients."
pascal@17469 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17469 8 LICENSE="GPL2"
pascal@25509 9 WEB_SITE="https://sourceforge.net/projects/minidlna/"
Hans-G?nter@21442 10
pascal@17469 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@17469 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@21442 13
Hans-G?nter@21442 14 DEPENDS="ffmpeg flac jpeg libexif libid3tag libogg libsqlite libvorbis"
Hans-G?nter@24906 15 BUILD_DEPENDS="ffmpeg-dev flac-dev gettext jpeg-dev libav-dev libexif-dev
Hans-G?nter@21442 16 libid3tag-dev libogg-dev libvorbis-dev sqlite-dev"
Hans-G?nter@24906 17
pascal@20475 18 CONFIG_FILES="/etc/minidlna.conf"
pascal@17469 19
pascal@24402 20 # What is the latest version available today?
pascal@24402 21 current_version()
pascal@24402 22 {
pascal@24402 23 wget -O - https://sourceforge.net/projects/minidlna/files/minidlna/ 2>/dev/null | \
pascal@24402 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 25 sed '/scope="row/!d;s|.*/minidlna/||;s|/.*||;q'
pascal@24402 26 }
pascal@24402 27
pascal@17469 28 # Rules to configure and make the package.
pascal@17469 29 compile_rules()
pascal@17469 30 {
Hans-G?nter@21442 31 ./configure \
Hans-G?nter@21442 32 --prefix=/usr \
Hans-G?nter@21442 33 --sysconfdir=/etc \
pascal@17469 34 $CONFIGURE_ARGS &&
Hans-G?nter@24906 35 make &&
Hans-G?nter@24906 36 make install DESTDIR=$DESTDIR
pascal@17469 37 }
pascal@17469 38
pascal@17469 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17469 40 genpkg_rules()
pascal@17469 41 {
Hans-G?nter@24906 42 mkdir -p $fs/etc
Hans-G?nter@21442 43
Hans-G?nter@21442 44 cp -a $src/minidlna.conf $fs/etc
Hans-G?nter@24906 45 cook_copy_folders sbin
pascal@17469 46 }