# Contributor: Jens Vehlhaber <jens@eisfair.org>
# Maintainer: Jens Vehlhaber <jens@eisfair.org>
pkgname=linux-pam-pwdfile
pkgver=1.0
pkgrel=1
pkgdesc="pluggable authentication modules for authenticate users with flat text username:password files."
url="http://cpbotha.net/software/pam_pwdfile/"
arch="all"
license="BSD"
depends=""
depends_dev="linux-pam-dev openssl-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/tiwe-de/libpam-pwdfile/archive/v${pkgver}.tar.gz
	"

_builddir="$srcdir/libpam-pwdfile-${pkgver}"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="1546a57bfe50800175f7cbc88ade4a15  linux-pam-pwdfile-1.0.tar.gz"
sha256sums="5b8db1397cff9cadfd1bb96f53c134b787ab0e6a0fbedb71040541d340313ba2  linux-pam-pwdfile-1.0.tar.gz"
sha512sums="269b0fc27bd42a95f6e6c3e7461f157ef28cefc0ad7028e2b6412ea8ed9e115bf39da052932ee272a1831f6f8c50157c9e30c4ef7e2a4ce0289c289c6a04fdfb  linux-pam-pwdfile-1.0.tar.gz"
