summaryrefslogtreecommitdiff
path: root/social/lua-cyrussasl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'social/lua-cyrussasl/PKGBUILD')
-rw-r--r--social/lua-cyrussasl/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/social/lua-cyrussasl/PKGBUILD b/social/lua-cyrussasl/PKGBUILD
new file mode 100644
index 000000000..d37eacc1c
--- /dev/null
+++ b/social/lua-cyrussasl/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Dwayne Bent <dbb.1@liqd.org>
+
+pkgname=lua-cyrussasl
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Lua bindings for Cyrus SASL library."
+arch=('i686' 'x86_64' 'mips64el')
+url="http://github.com/JorjBauer/lua-cyrussasl"
+license=('BSD')
+depends=('lua>=5.1' 'libsasl')
+source=(
+ "lua-cyrussasl-$pkgver.tar.gz::https://github.com/JorjBauer/lua-cyrussasl/tarball/v$pkgver"
+ "lua-cyrussasl.patch"
+)
+md5sums=('40c94c06441e1e47640d81b125742969'
+ '5b5c15e4cba63d05a5bfd1cc3ddcba0f')
+
+build() {
+ cd $srcdir/*-lua-cyrussasl-*
+
+ patch -p1 < "$srcdir/lua-cyrussasl.patch"
+ make
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/lib/lua/5.1"
+ mkdir -p "$pkgdir/usr/share/licenses/lua-cyrussasl"
+
+ cd $srcdir/*-lua-cyrussasl-*
+
+ make DESTDIR=${pkgdir} install
+ install -m644 "LICENSE" "$pkgdir/usr/share/licenses/lua-cyrussasl/LICENSE"
+}
+