aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-llthreads/APKBUILD
blob: 08e356577c0a3125aec1c3675fb860963ef00849 (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
39
40
41
42
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-llthreads
pkgver=1.1
pkgrel=1
pkgdesc="Low-Level native threads module for Lua"
url="https://github.com/Neopallium/lua-llthreads"
arch="all"
license="MIT"
depends=""
makedepends="cmake lua-dev"
install=""
subpackages=
source="saveas-https://github.com/Neopallium/lua-llthreads/tarball/v1.1/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/Neopallium-lua-llthreads-48c39a5

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DINSTALL_CMOD=/usr/lib/lua/5.1 \
		. || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
}

md5sums="f5c80984e7d8849ad777b42c4594da8d  lua-llthreads-1.1.tar.gz"