# SliTaz package receipt. PACKAGE="zvbi" VERSION="0.2.35" CATEGORY="multimedia" SHORT_DESC="VBI capture and decoding library." MAINTAINER="slaxemulator@gmail.com" LICENSE="GPL2" WEB_SITE="https://zapping.sourceforge.net/cgi-bin/view/ZVBI/WebHome" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="$SF_MIRROR/zapping/$TARBALL" DEPENDS="libpng xorg-libX11" BUILD_DEPENDS="libpng-dev xorg-libX11-dev zlib-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/zapping/files/zvbi/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/zvbi/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { patch -Np1 -i $stuff/fix-includes.patch ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --disable-static \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/bin $fs/usr cp -a $install/usr/sbin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib }