summaryrefslogtreecommitdiff
path: root/community/luasec/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/luasec/PKGBUILD')
-rw-r--r--community/luasec/PKGBUILD33
1 files changed, 17 insertions, 16 deletions
diff --git a/community/luasec/PKGBUILD b/community/luasec/PKGBUILD
index bb3f199a5..28dc95608 100644
--- a/community/luasec/PKGBUILD
+++ b/community/luasec/PKGBUILD
@@ -1,32 +1,33 @@
-# $Id: PKGBUILD 98944 2013-10-21 14:45:17Z spupykin $
+# $Id: PKGBUILD 105499 2014-02-09 10:04:32Z bpiotrowski $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
-# Maintainer: Dwayne Bent <dbb.1@liqd.org>
+# Contributor: Dwayne Bent <dbb.1@liqd.org>
# Contributor: Paul-Sebastian Manole <brokenthorn@gmail.com>
pkgbase=luasec
pkgname=(lua-sec lua51-sec)
-pkgver=20131021git
+pkgver=0.5
pkgrel=1
+epoch=1
pkgdesc='Lua bindings for OpenSSL library to provide TLS/SSL communication.'
arch=('i686' 'x86_64' 'mips64el')
url='https://github.com/brunoos/luasec/wiki'
license=('MIT')
-makedepends=('openssl' 'lua' 'lua-socket' 'lua51' 'lua51-socket' 'git')
-source=("luasec::git://github.com/brunoos/luasec.git")
-md5sums=('SKIP')
+makedepends=('openssl' 'lua' 'lua-socket' 'lua51' 'lua51-socket')
+options=('!buildflags')
+source=("https://github.com/brunoos/luasec/archive/luasec-$pkgver.tar.gz")
+md5sums=('0518f4524f399f33424c6f450e1d06db')
-build() {
- cp -a luasec luasec-51
-
- unset CFLAGS
- unset LDFLAGS
+prepare() {
+ cp -a luasec-luasec-$pkgver luasec-luasec-$pkgver-51
+}
+build() {
msg2 'Building with lua 5.2'
- cd luasec
+ cd luasec-luasec-$pkgver
make linux
msg2 'Building with lua 5.1'
- cd ../luasec-51
+ cd ../luasec-luasec-$pkgver-51
find . -type f -name \*.[ch] -exec sed -i \
-e 's|include .lua.h.|include "lua5.1/lua.h"|g' \
-e 's|include .lualib.h.|include "lua5.1/lualib.h"|g' \
@@ -40,7 +41,7 @@ package_lua-sec() {
depends=('openssl' 'lua' 'lua-socket')
install -dm755 "$pkgdir/usr/lib/lua/5.2"
- cd luasec
+ cd luasec-luasec-$pkgver
make LUACPATH="$pkgdir/usr/lib/lua/5.2" LUAPATH="$pkgdir/usr/share/lua/5.2" install
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
@@ -51,9 +52,9 @@ package_lua51-sec() {
replaces=('luasec')
install -dm755 "$pkgdir/usr/lib/lua/5.1"
- cd luasec-51
+ cd luasec-luasec-$pkgver-51
make LUACPATH="$pkgdir/usr/lib/lua/5.1" LUAPATH="$pkgdir/usr/share/lua/5.1" install
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-# vim:set ts=4 sw=4 et:
+# vim:set ts=2 sw=2 et: