# SliTaz package receipt. PACKAGE="speedcrunch" #GITHASH="7a34226332a526f0d77f02b17b87f165362a206d" #VERSION=${GITHASH:0:7} VERSION="0.11" CATEGORY="utilities" SHORT_DESC="A fast, high precision and powerful desktop calculator." MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL2" WEB_SITE="https://www.speedcrunch.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/speedcrunch/SpeedCrunch/archive/$VERSION.tar.gz" DEPENDS="glibc-base libQtGui libQtXml" BUILD_DEPENDS="cmake Qt4-dev qmake" # What is the latest version available today? current_version() { wget -O - https://github.com/speedcrunch/SpeedCrunch/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { mkdir ./build cd ./build cmake -DCMAKE_INSTALL_PREFIX=/usr ../src && make && lrelease ../src/speedcrunch.pro && make install # proper sub-category sed -i 's|^Categories.*$|&;Calculator;|' \ $install/usr/share/applications/speedcrunch.desktop } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs }