wok view csync/receipt @ rev 24699

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 13 19:47:29 2022 +0000 (2022-03-13)
parents 7896f0694ef6
children bd7510903310
line source
1 # SliTaz package receipt.
3 PACKAGE="csync"
4 VERSION="0.50.8"
5 CATEGORY="network"
6 SHORT_DESC="File synchronizer"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.csync.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://download.owncloud.com/download/$TARBALL"
13 DEPENDS="libsqlite neon"
14 BUILD_DEPENDS="check-dev cmake sqlite-dev iniparser-dev \
15 expat-dev openssl-dev log4c-dev neon-dev samba-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://csync.org/ 2>/dev/null | \
21 sed '/csync version/!d;s|.*version ||;s|<.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir csync-build && cd csync-build
28 cmake -DCMAKE_INSTALL_PREFIX=/usr \
29 -DWITH_LOG4C=OFF \
30 -DLOG_TO_CALLBACK=ON .. \
31 && make && make 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/etc $fs/
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 cp -a $install/usr/lib/csync-0 $fs/usr/lib
44 }