# SliTaz package receipt. PACKAGE="rhapsody" VERSION="0.28b" CATEGORY="network" SHORT_DESC="Text mode and easy to use IRC client." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" TARBALL="${PACKAGE}_${VERSION}.tgz" WEB_SITE="https://rhapsody.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="irc" DEPENDS="ncurses" BUILD_DEPENDS="ncurses-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/rhapsody/files/rhapsody/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/rhapsody_||;s|.tgz.*||;q' } # Rules to configure and make the package. compile_rules() { sed -i 's|lncurses|& -ltinfo|' configure ./configure -i /usr/bin -d /usr/share/doc/rhapsody && make clean && make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $src/rhapsody $fs/usr/bin # Doc stuff. mkdir -p $fs/usr/share/doc/rhapsody cp -a $src/help $fs/usr/share/doc/rhapsody chmod 644 $fs/usr/share/doc/rhapsody/help/* }