wok view csync/receipt @ rev 25051
Up terminology (0.7.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 05 10:44:35 2022 +0000 (2022-06-05) |
parents | bd7510903310 |
children | fa5a8f0acc3b |
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="https://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 sed -i 's|^\( *\)/opt/local\(.*\)$|&\n\1/opt/samba\2|' cmake/Modules/FindLibsmbclient.cmake
28 mkdir csync-build && cd csync-build
29 cmake -DCMAKE_INSTALL_PREFIX=/usr \
30 -DWITH_LOG4C=OFF \
31 -DLOG_TO_CALLBACK=ON .. \
32 && make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
41 cp -a $install/usr/etc $fs/
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp -a $install/usr/lib/csync-0 $fs/usr/lib
45 }