# SliTaz package receipt. PACKAGE="qtermwidget" COMMIT="c12a3635127e5eb8e492f7a9c49500d8693565c0" VERSION="${COMMIT:0:7}" CATEGORY="system-tools" SHORT_DESC="A Qt terminal widget" MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL2" WEB_SITE="https://github.com/lxqt/qtermwidget" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/archive/$COMMIT.tar.gz" DEPENDS="gcc-lib-base glibc-base" BUILD_DEPENDS="wget cacerts cmake Qt4-dev qmake" # What is the latest version available today? current_version() { wget -O - $WEB_SITE/releases 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 .. && make && make DESTDIR=$install install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib $fs/usr/share cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/share/qtermwidget4 $fs/usr/share }