wok view csync/receipt @ rev 25615
Add libslirp (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 03 12:03:26 2023 +0000 (16 months ago) |
parents | e171b422f9e7 |
children |
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="https://web.archive.org/web/20121102081006if_/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 }