summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d6774e11187bc2626ce2aad37cea9664151507e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=pam_csync
pkgver=0.42.0
pkgrel=3
pkgdesc="PAM modules that synchronizes home directories upon logins using libcsync"
arch=("i686" "x86_64")
license=('GPL2')
url="http://www.csync.org"
depends=('ocsync' 'iniparser')
makedepends=('cmake')
backup=(etc/security/pam_csync.conf)
source=(http://www.csync.org/files/$pkgname-$pkgver.tar.gz
        pam-csync-0.42.0-ocsync.patch)

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	patch -p0 -i "$srcdir"/pam-csync-0.42.0-ocsync.patch
	sed 's|2\.2|2.4|' -i src/CMakeLists.txt
}

build() {
	cd "$srcdir"
	rm -rf build
	mkdir build
	cd build
	cmake -DCMAKE_BUILD_TYPE=Release \
	      -DCMAKE_INSTALL_PREFIX=/usr \
	      -DPAM_MODULE_INSTALL_DIR=/usr/lib/security \
	      "$srcdir/$pkgname-$pkgver"
	make
}

package() {
	cd "$srcdir/build"
	make DESTDIR="$pkgdir" install
}

sha256sums=('bba01854ee5929ecc90428275a50f804d361e92f2805f1d2eff7d3f2bca48802'
            'b0d8e7f02d41355e5a238a07f3a1c408e429be1769337e4b30388e020f0fbe11')