csync-git master
authorTomas Mudrunka <tomas@mudrunka.cz>
Wed, 13 Sep 2017 14:49:22 +0000 (16:49 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Wed, 13 Sep 2017 14:49:22 +0000 (16:49 +0200)
csync-git/PKGBUILD [new file with mode: 0644]

diff --git a/csync-git/PKGBUILD b/csync-git/PKGBUILD
new file mode 100644 (file)
index 0000000..727b4a6
--- /dev/null
@@ -0,0 +1,48 @@
+# Maintainer: Scott Garrett <Wintervenom [(at)] archlinux.us>
+
+pkgname=csync-git
+pkgver=20120723
+pkgrel=2
+pkgdesc="A file synchronizer especially designed for you, the normal user."
+arch=("i686" "x86_64")
+url="http://www.csync.org"
+license=('GPL2')
+depends=('sqlite' 'iniparser' 'neon' 'smbclient' 'libssh' 'git')
+makedepends=('cmake')
+provides=('csync' 'csync-owncloud')
+conflicts=('csync' 'csync-owncloud')
+_gitroot="git://git.csync.org/projects/csync.git"
+_gitname="csync"
+
+build () {
+    cd "$srcdir"
+    msg "Connecting to GIT server..."
+    if [[ -d $_gitname ]]; then
+        cd $_gitname && git pull origin
+        msg "The local files are updated."
+    else
+        git clone $_gitroot
+    fi
+    msg "GIT checkout done or server timeout."
+    msg "Starting make..."
+
+    [[ -d "$srcdir/$_gitname-build" ]] &&
+        rm -rf "$srcdir/$_gitname-build"
+    cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+    cd "$srcdir/$_gitname-build"
+
+    sed -i 's/__FUNCTION__/__func__/g' $srcdir/csync-build/src/csync_log.h
+    sed -i 's/__FUNCTION__/__func__/g' $srcdir/csync-build/tests/csync_tests/check_csync_log.c
+
+    cmake -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DSYSCONF_INSTALL_DIR=/etc \
+        -DLOG_TO_CALLBACK=on \
+        ../$_gitname
+
+    make
+}
+package () {
+    cd "$srcdir/$_gitname-build"
+    make DESTDIR=$pkgdir install
+}
This page took 0.194906 seconds and 4 git commands to generate.