diff options
author | piernov | 2015-06-09 17:28:35 +0200 |
---|---|---|
committer | piernov | 2015-06-09 17:28:35 +0200 |
commit | 0923da026649d0d28533f9440bc430fcc8481c16 (patch) | |
tree | b8d0198d19569f14cc9c53a869ce2b3f1c895454 | |
download | aur-lua51-pam.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..a38fee44d3d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = lua51-pam + pkgdesc = Lua module for PAM authentication + pkgver = r27.20728f8 + pkgrel = 1 + url = https://github.com/devurandom/lua-pam + arch = i686 + arch = x86_64 + makedepends = git + depends = pam + depends = lua51 + source = lua-pam::git+git://github.com/devurandom/lua-pam.git + sha1sums = SKIP + +pkgname = lua51-pam + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..bfe6ac9faf9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: piernov <piernov@piernov.org + +pkgname=lua51-pam +pkgver=r27.20728f8 +pkgrel=1 +pkgdesc='Lua module for PAM authentication' +arch=('i686' 'x86_64') +url='https://github.com/devurandom/lua-pam' +depends=('pam' 'lua51') +makedepends=('git') +source=("lua-pam::git+git://github.com/devurandom/lua-pam.git") +sha1sums=('SKIP') + +pkgver() { + cd "${srcdir}/lua-pam" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/lua-pam" + git submodule update --init + make LUA_VERSION=5.1 +} + +package() { + cd "${srcdir}/lua-pam" + install -D pam.so "$pkgdir/usr/lib/lua/5.1/pam.so" +} |