# SliTaz package receipt. PACKAGE="libnjb" VERSION="2.2.7" CATEGORY="system-tools" SHORT_DESC="C library and API for communicating with the Creative Nomad JukeBox and Dell DJ." MAINTAINER="keupont@no-log.org" LICENSE="BSD" WEB_SITE="https://sourceforge.net/projects/libnjb/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="libusb-compat" BUILD_DEPENDS="libusb-compat libusb-compat-dev libusb-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/libnjb/files/libnjb/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/libnjb/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure $CONFIGURE_ARGS && make -j 1 && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib }