summaryrefslogtreecommitdiff
path: root/pkgs/lua-cyrussasl/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-01-28 03:23:04 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-01-28 03:23:04 -0300
commit4fd38b1c7635719535ed16a2ed7cf6814ded90f8 (patch)
tree5a3adb6091fae6f777c4654663018715d04ab789 /pkgs/lua-cyrussasl/PKGBUILD
parent21c6105c4fdacb617bd6a1cc06222f1de93be47e (diff)
updated README and [social] ABS treeHEADmaster
Diffstat (limited to 'pkgs/lua-cyrussasl/PKGBUILD')
-rw-r--r--pkgs/lua-cyrussasl/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/lua-cyrussasl/PKGBUILD b/pkgs/lua-cyrussasl/PKGBUILD
new file mode 100644
index 0000000..17bd091
--- /dev/null
+++ b/pkgs/lua-cyrussasl/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Dwayne Bent <dbb.1@liqd.org>
+
+pkgname=lua-cyrussasl-git
+pkgver=20100215
+pkgrel=1
+pkgdesc="Lua bindings for Cyrus SASL library."
+arch=('i686' 'x86_64')
+url="http://github.com/JorjBauer/lua-cyrussasl"
+license=('BSD')
+depends=('lua>=5.1' 'libsasl')
+makedepends=('git')
+provides=('lua-cyrussasl')
+source=("lua-cyrussasl.patch")
+md5sums=('5b5c15e4cba63d05a5bfd1cc3ddcba0f')
+
+_giturl='git://github.com/JorjBauer/lua-cyrussasl.git'
+_gitlocal='lua-cyrussasl'
+
+build() {
+ _getsrc || return 1
+
+ cd $_gitlocal
+
+ mkdir -p "$pkgdir/usr/lib/lua/5.1" || return 1
+ mkdir -p "$pkgdir/usr/share/licenses/lua-cyrussasl" || return 1
+
+ patch -p1 < "$srcdir/lua-cyrussasl.patch" || return 1
+ make DESTDIR=${pkgdir} install || return 1
+
+ install -m644 "LICENSE" "$pkgdir/usr/share/licenses/lua-cyrussasl/LICENSE"
+}
+
+_getsrc() {
+ if [ -d $_gitlocal ]; then
+ msg "Updating source files..."
+ pushd $_gitlocal && git pull origin && popd || return 1
+ else
+ msg "Cloning source files..."
+ git clone --depth 1 $_giturl $_gitlocal || return 1
+ fi
+}