aboutsummaryrefslogtreecommitdiffstats
path: root/community/libluv/APKBUILD
blob: ea0af134078cff5678ae6c24f5205d92d4812018 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libluv
_release=1
pkgver=1.34.2.$_release
pkgrel=1
pkgdesc="Bare libuv bindings for lua"
options="!check" # No testsuite
url="https://github.com/luvit/luv"
arch="all"
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"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DWITH_SHARED_LIBUV=ON \
		-DLUA_BUILD_TYPE=System \
		-DBUILD_MODULE=OFF \
		-DBUILD_SHARED_LIBS=ON \
		-DBUILD_STATIC_LIBS=OFF \
		-DCMAKE_INSTALL_PREFIX=/usr \
		.
	ninja -C build
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="b9e8877af026b573c55af64e0a643bef37e3a57ed3bca6f95546375d9daa59877cad5929287f38653b4d6c01b779087678430676c45b895ea35b8be6e3f8174a  luv-1.34.2-1.tar.gz"