pkgname=pam_csync
pkgver=0.42.0
pkgrel=2
pkgdesc="a file synchronizer especially designed for you, the normal user. PAM module"
arch=("i686" "x86_64")
license=('GPL2')
url="http://www.csync.org"
depends=('log4c' 'sqlite3' 'iniparser')
makedepends=('cmake')
optdepends=('samba: smb support' 'libssh: sftp support')
source=("http://git.csync.org/projects/pam_csync.git/snapshot/$pkgname-$pkgver.tar.gz")
sha1sums=('1784713d41edb1fac78d21a1816f956f91c8d5e5')
build() {
cd $startdir/src/$pkgname-$pkgver
test -d build || mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .. || return 1
make || return 1
make DESTDIR=$startdir/pkg install || return 1
}