# SliTaz package receipt. PACKAGE="hydrogen" VERSION="0.9.5" CATEGORY="multimedia" MAINTAINER="jozee@slitaz.org" LICENSE="GPL2" SHORT_DESC="Advanced Drum Machine" WEB_SITE="https://github.com/hydrogen-music/hydrogen" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="multimedia" DEPENDS="libarchive liblrdf libQtCore libQtGui libQtXml \ jack-audio-connection-kit libsndfile" BUILD_DEPENDS="scons libarchive-dev liblrdf-dev Qt4-dev \ jack-audio-connection-kit jack-audio-connection-kit-dev \ flac-dev libsndfile-dev alsa-lib-dev zlib-dev libtar-dev \ ladspa-dev raptor-dev pkg-config subversion" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/hydrogen/files/Hydrogen/ 2>/dev/null | \ sed '/scope="row/!d;s|.*/Hydrogen/||;s|%20.*||;q' } # Rules to configure and make the package. compile_rules() { cd $src export QTDIR=/usr mkdir -p $DESTDIR scons prefix=/usr libarchive=1 scons -k DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib $fs/usr/share cp -a $install/usr/bin $fs/usr cp -a $install/usr/share/$PACKAGE $fs/usr/share }