# SliTaz package receipt. PACKAGE="libspectrum" VERSION="1.5.0" CATEGORY="misc" SHORT_DESC="ZX Spectrum emulator support library." MAINTAINER="slaxemulator@gmail.com" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/fuse-emulator/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/fuse-emulator/$TARBALL" DEPENDS="audiofile glib libgcrypt zlib" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/fuse-emulator/files/libspectrum/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/libspectrum/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_files *.so* }