SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "qiviewer"

# SliTaz package receipt.

PACKAGE="qiviewer"
VERSION="0.5.0"
CATEGORY="x-window"
SHORT_DESC="Light and fast QT based images viewer."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://github.com/samkpo/qiviewer"
WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"

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

# What is the latest version available today?
current_version()
{
    wget -O - https://raw.githubusercontent.com/samkpo/qiviewer/master/ChangeLog 2>/dev/null | \
    sed '/Version/!d;s|.*ersion ||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src/src
    qmake && make && make INSTALL_ROOT=$DESTDIR install &&
    sed -i s'/Name=qiviewer/Name=Qiviewer/' $install/usr/share/applications/*
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/applications
    cp -a $install/usr/bin $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)