summaryrefslogtreecommitdiff
path: root/community/luasec/PKGBUILD
blob: 50ecd0af9606f79dbb7a61a8f1107a419ec08397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 66219 2012-02-23 03:33:12Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Dwayne Bent <dbb.1@liqd.org>
# Contributor: Paul-Sebastian Manole <brokenthorn@gmail.com>

pkgname=luasec
pkgver=0.4
pkgrel=3
pkgdesc="Lua bindings for OpenSSL library to provide TLS/SSL communication."
arch=('i686' 'x86_64' 'mips64el')
url="http://luasec.luaforge.net/"
license=('MIT')
depends=('openssl>=0.9.7' 'lua>=5.1' 'luasocket>=2.0.2')
source=("http://www.inf.puc-rio.br/~brunoos/luasec/download/$pkgname-$pkgver.tar.gz"
        'luasec.patch')
md5sums=('712158d60207bdbb6215fc7e07d8db24'
         '25e48c1115225d9884cdb7f5ca4949a9')

build() {
    install -d "$pkgdir/usr/share/lua/5.1"
    install -d "$pkgdir/usr/lib/lua/5.1"
    install -d "$pkgdir/usr/share/licenses/$pkgname"

    cd "$srcdir/$pkgname-$pkgver"
    patch -p1 Makefile "$srcdir/luasec.patch"
    make linux
    make DESTDIR=$pkgdir install

    install -m644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}