aboutsummaryrefslogtreecommitdiffstats
path: root/community/libluv/APKBUILD
blob: d61b715a52272aac76f35b9588e2f506a8c64218 (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
43
44
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libluv
_release=1
_pkgver=1.30.1
pkgver=$_pkgver.$_release
pkgrel=0
pkgdesc="Bare libuv  bindings for lua"
url="https://github.com/luvit/luv"
arch="all !s390x"
license="Apache-2.0"
makedepends="cmake luajit-dev libuv-dev ninja"
subpackages="$pkgname-dev"
source="https://github.com/luvit/luv/releases/download/$_pkgver-$_release/luv-$_pkgver-$_release.tar.gz"
builddir="$srcdir/luv-$_pkgver-$_release"

prepare() {
	default_prepare
	mkdir -p "$builddir"/build
}

build() {
	cd  "$builddir"/build
	cmake -GNinja \
		-DWITH_SHARED_LIBUV=ON \
		-DLUA_BUILD_TYPE=System \
		-DBUILD_MODULE=OFF \
		-DBUILD_SHARED_LIBS=ON \
		-DCMAKE_INSTALL_PREFIX=/usr \
		..
	ninja
}

check() {
	# Replace with proper check command(s)
	:
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" ninja install
}

sha512sums="96d4aafebd4d90cba3c56f905def57d40a76fe57a1abc3a20f387a4f88d8cfd3f54b4e20ac67e4a457a6ced2faa5e382e5a8647f7f5779d867c8d15c44f3e1ec  luv-1.30.1-1.tar.gz"