summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorpiernov2015-06-09 17:28:35 +0200
committerpiernov2015-06-09 17:28:35 +0200
commit0923da026649d0d28533f9440bc430fcc8481c16 (patch)
treeb8d0198d19569f14cc9c53a869ce2b3f1c895454 /PKGBUILD
downloadaur-lua51-pam.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
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"
+}