# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ssh-getkey-ldap
pkgver=0.1.2
pkgrel=0
pkgdesc="A simple script to be used as AuthorizedKeysCommand in OpenSSH server to look up user's public keys in LDAP."
url="https://github.com/jirutka/ssh-getkey-ldap"
arch="noarch"
license="MIT"
depends="lua lua-ldap"
makedepends=""
install="$pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/jirutka/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	return 0
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" PREFIX="/usr" ./install
}

md5sums="c2f259dc6b8077e0989a7e24e548aa55  ssh-getkey-ldap-0.1.2.tar.gz"
sha256sums="3b286b6ef384a4a168fa6b6a99d514e86c9e51384cf6e848efe55cb7d07f98e4  ssh-getkey-ldap-0.1.2.tar.gz"
sha512sums="2989b16c18dd776a79405082a405ee994cad3fbb1d61440c7ae0b94ac836dead0aa5d19757370407460f6abeb07e3261a43efaf9450d66d2055c2fe1a64fb764  ssh-getkey-ldap-0.1.2.tar.gz"
