SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wkhtmltopdf"

# SliTaz package receipt.

PACKAGE="wkhtmltopdf"
VERSION="0.12.6"
CATEGORY="misc"
SHORT_DESC="Tools to render HTML into PDF and various image formats."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="LGPL3"
WEB_SITE="https://wkhtmltopdf.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz"

DEPENDS="libQtCore libQtGui libQtNetwork libQtSvg libQtWebkit libQtXml"
BUILD_DEPENDS="python qmake Qt4-dev"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
#    cat > qt/configure <<EOT
##!/bin/sh
#
#cd \$(dirname \$0)
#cd ..
#qmake wkhtmltopdf.pro
#EOT
#    chmod +x qt/configure
#    scripts/build.py posix-local

    qmake wkhtmltopdf.pro &&
    make &&
    make install INSTALL_ROOT=$DESTDIR/usr
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_folders    lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)