summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 88a04679f20d9ed9535075f5405c33bfb84071c1 (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
# Maintainer: Shaun Bouckaert <shaun@train-meditations.com>
pkgname=pam-pgsql-git
pkgver=0.7.3.2.r10.efe2820
pkgrel=1
pkgdesc="PAM module to provide authentication against PostgreSQL tables"
arch=('x86_64')
url="https://github.com/pam-pgsql/pam-pgsql"
license=('GPL')
depends=('pam' 'libgcrypt' 'postgresql-libs>=7.4')
makedepends=('git')
source=('pam-pgsql-git::git+https://github.com/pam-pgsql/pam-pgsql.git')
md5sums=('SKIP')

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

build() {
	cd "$pkgname"
	./autogen.sh
	./configure --prefix=/usr
	make
}

check() {
	cd "$pkgname"
	make -k check
}

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