summaryrefslogtreecommitdiff
path: root/pcr/lua-cyrussasl/PKGBUILD
blob: 9e57498a69fec37d4be2dcf38866e999af849862 (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
31
32
33
# Maintainer (Arch): Dwayne Bent <dbb.1@liqd.org>

pkgname=lua-cyrussasl
pkgver=1.0.0
pkgrel=3
pkgdesc="Lua bindings for Cyrus SASL library."
arch=('i686' 'x86_64' 'mips64el')
url="http://github.com/JorjBauer/lua-cyrussasl"
license=('BSD')
makedepends=('lua51' 'libsasl')
source=(
    "lua-cyrussasl-$pkgver.tar.gz::https://github.com/JorjBauer/lua-cyrussasl/tarball/v$pkgver"
    "lua-cyrussasl.patch"
)
md5sums=('40c94c06441e1e47640d81b125742969'
         'bdb7b8413f9b7d9598b7c8b820427751')

build() {
    cd $srcdir/*-lua-cyrussasl-*
    patch -Np1 -i ${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"
}