From: Tomas Mudrunka Date: Wed, 13 Sep 2017 14:49:22 +0000 (+0200) Subject: csync-git X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;ds=sidebyside;p=mirrors%2FArchLinux-Packages.git csync-git --- diff --git a/csync-git/PKGBUILD b/csync-git/PKGBUILD new file mode 100644 index 0000000..727b4a6 --- /dev/null +++ b/csync-git/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Scott Garrett + +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 +}