summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfa3f63b08caf2df40e1b85db63a982d9ffe4f3e (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
41
42
43
44
# Maintainer: Frank Vanderham <twelve_dot_eighty_at_gmail_dot_com>
pkgname=pam_mount-git
pkgver=2.16
pkgrel=3
pkgdesc="A PAM module that can mount volumes for a user session"
arch=('x86_64')
url="http://pam-mount.sourceforge.net/"
license=('GPL')
depends=('pcre' 'util-linux' 'libhx' 'libxml2' 'openssl' 'cryptsetup')
makedepends=('git')
provides=("pam_mount")
conflicts=("pam_mount")
backup=('etc/security/pam_mount.conf.xml')
options=(!emptydirs)
source=("${pkgname}::git+git://git.code.sf.net/p/pam-mount/pam-mount")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-VCS}"
    printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
}

build() {
  cd -- "$srcdir/$pkgname"
  aclocal
  libtoolize
  autoreconf --install
  automake --add-missing
  autoreconf
  ./configure \
	--prefix=/usr \
	--with-ssbindir=/usr/bin \
	--sbindir=/usr/bin \
	--with-slibdir=/usr/lib \
	--sysconfdir=/etc \
	--localstatedir=/var
  make
}

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