SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "nomacs"

# SliTaz package receipt.

PACKAGE="nomacs"
VERSION="1.6.0"
CATEGORY="graphics"
SHORT_DESC="Pictures browser"
MAINTAINER="psychomaniak@xakep.ru"
LICENSE="GPL3"
WEB_SITE="https://nomacs.org/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$SF_MIRROR/$PACKAGE/files/$PACKAGE-$VERSION-source.tar.bz2"

DEPENDS="libQtCore libQtGui libQtNetwork libgomp exiv2"
BUILD_DEPENDS="Qt4-dev qmake cmake exiv2-dev libraw-dev"
SUGGESTED="xdg-utils qtconfig"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/nomacs/files/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*/nomacs-||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src/src/img ; cp -f nomacs32.png nomacs.png
    cd $src ; sed -i 's/ ON/ OFF/g' CMakeLists.txt
    mkdir build ; cd build
    cmake \
        -DENABLE_OPENCV=OFF \
        -DENABLE_RAW=OFF \
        -DENABLE_WEBP=OFF \
        -DENABLE_TIFF=OFF \
        -DDISABLE_QT_DEBUG=ON \
        -DCMAKE_INSTALL_PREFIX=/usr ..
    make
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
    rm -rf $src/build
    cd $fs/usr/share/$PACKAGE/translations
    find * -size -62k -delete
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)