wok-current view libctpp2/receipt @ rev 25604

Use gcc49 to build mysql
author Stanislas Leduc <shann@slitaz.org>
date Fri Sep 01 20:31:42 2023 +0000 (16 months ago)
parents 4ce52a0b72fd
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libctpp2"
4 SOURCE="ctpp2"
5 VERSION="2.8.3"
6 CATEGORY="development"
7 SHORT_DESC="Template engine completely written in C++."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="https://web.archive.org/web/20180803011303/http://ctpp.havoc.ru/en/"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="http://ftp.vim.org/pub/ftp/pub/kiwix/dev/$TARBALL"
15 DEPENDS="gcc-lib-base"
16 BUILD_DEPENDS="cmake"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://ftp.nluug.nl/kiwix/dev/ 2>/dev/null | \
22 sed '/ctpp2-[0-9]/!d;s|.*ctpp2-||;s|.t.*||' | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir build
29 cd build &&
30 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
31 make -j 1 &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
40 cp -a $install/usr/lib/*.so* $fs/usr/lib/
41 cp -a $install/usr/bin $fs/usr
42 }