SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "qterminal"

# SliTaz package receipt.

PACKAGE="qterminal"
VERSION="0.6.0"        # last version with qt4 support
CATEGORY="system-tools"
TAGS="terminal"
SHORT_DESC="A Qt based terminal."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="GPL2"
WEB_SITE="https://github.com/lxqt/qterminal"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"

DEPENDS="libQtCore libQtGui xorg-libX11 qtermwidget"
BUILD_DEPENDS="cacerts cmake Qt4-dev qmake qtermwidget-dev xorg-libX11-dev"

GENERIC_PIXMAPS="no"
GENERIC_MENUS="no"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir build
    cd build
    cmake    ..                \
        -DCMAKE_INSTALL_PREFIX=/usr    \
        -DUSE_SYSTEM_QXT=0 &&
    make &&
    make DESTDIR=$install install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/share/applications    $fs/usr/share

    sed -i 's|^Icon=.*$|Icon=terminal|g' $fs/usr/share/applications/*.desktop
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)