SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libctpp2"

# SliTaz package receipt.

PACKAGE="libctpp2"
SOURCE="ctpp2"
VERSION="2.8.3"
CATEGORY="development"
SHORT_DESC="Template engine completely written in C++."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://web.archive.org/web/20180803011303/http://ctpp.havoc.ru/en/"

TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="http://ftp.vim.org/pub/ftp/pub/kiwix/dev/$TARBALL"

DEPENDS="gcc-lib-base"
BUILD_DEPENDS="cmake"

# What is the latest version available today?
current_version()
{
    wget -O - https://ftp.nluug.nl/kiwix/dev/ 2>/dev/null | \
    sed '/ctpp2-[0-9]/!d;s|.*ctpp2-||;s|.t.*||' | sort -Vr | sed q
}

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

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

    cp -a $install/usr/lib/*.so*    $fs/usr/lib/
    cp -a $install/usr/bin        $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)