Skip to content

Instantly share code, notes, and snippets.

@trainmeditations
Last active November 20, 2017 05:13
Show Gist options
  • Save trainmeditations/677a6239e747fe750cd2e7c4a84d0486 to your computer and use it in GitHub Desktop.
Save trainmeditations/677a6239e747fe750cd2e7c4a84d0486 to your computer and use it in GitHub Desktop.
PKGBUILD for pam-pgsql
# 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' '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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment