wok-current view libctpp2/receipt @ rev 24744

ncursesw-dev: add pkg config files
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 16 10:01:11 2022 +0000 (2022-03-16)
parents 510eca46e352
children 22471cbea549
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://ctpp.havoc.ru/download/$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 }