aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua-cyrus-sasl/APKBUILD
blob: 43a99f40c9816f4655feed89007816a55c4b39f7 (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
34
35
36
37
38
# Contributor: Leonardo Arena <larena@alpinelinux.org>
# Maintainer:
pkgname=lua-cyrus-sasl
_realname=lua-cyrussasl
pkgver=1.0.0
pkgrel=1
pkgdesc="Cyrus SASL library for Lua 5.1"
url="https://github.com/JorjBauer/lua-cyrussasl"
arch="all"
license="BSD"
depends=
makedepends="cyrus-sasl-dev lua-dev wget"
install=
subpackages=
source="http://dev.alpinelinux.org/archive/lua-cyrussals/lua-cyrussasl-v1.0.0-0.tar.gz
	lua-cyrussasl-v1.0.0-Makefile.patch"
#source="http://dev.alpinelinux.org/archive/${_realname}/${_realname}-v${pkgver}-0.tar.gz"

_builddir="$srcdir"/$_realname-v$pkgver

prepare() {
	cd $_builddir
	patch -p1 < "$srcdir"/lua-cyrussasl-v1.0.0-Makefile.patch
}

build() {
	cd "$_builddir"
	make
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/lib/lua/5.1
	make CPATH="$pkgdir"/usr/lib/lua/5.1 install
}

md5sums="551c0ad88ca114c7b44c8e5c447a9c34  lua-cyrussasl-v1.0.0-0.tar.gz
fbcb022f3ce9d5679454edac3b1f8c32  lua-cyrussasl-v1.0.0-Makefile.patch"