# SliTaz package receipt. PACKAGE="sonata" VERSION="1.6.2.1" CATEGORY="multimedia" SHORT_DESC="Elegant GTK+ music client for MPD" MAINTAINER="jozee@slitaz.org" LICENSE="GPL3" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://www.nongnu.org/sonata/" WGET_URL="http://download.berlios.de/sonata/$TARBALL" DEPENDS="pygtk python-mpd dbus-python mpd libffi" BUILD_DEPENDS="pygtk-dev dbus-python-dev pygobject-dev gettext \ pkg-config acl libcroco python-dev gtk+-dev libffi-dev" # What is the latest version available today? current_version() { wget -O - https://www.nongnu.org/sonata/download.html 2>/dev/null | \ sed '/source/!d;s|.*/v||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { python setup.py install --prefix=/usr --root="$DESTDIR" } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/applications $fs/usr/lib cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib $fs/usr cp -a $install/usr/share/sonata $fs/usr/share cp -a $install/usr/share/pixmaps $fs/usr/share cp -a $stuff/startsonata $fs/usr/bin/ }