aboutsummaryrefslogtreecommitdiffstats
path: root/community/libluv/APKBUILD
blob: a20bc159477273046c62f6bae3385e79c7e3ad5b (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
45
46
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libluv
pkgver=1.30.1
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-0/luv-$pkgver-0.tar.gz
	libluv.pc.in
	"
builddir="$srcdir/luv-$pkgver-0"

prepare() {
	default_prepare
	cp "$srcdir"/libluv.pc.in "$builddir"/
	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="97d21ce5f38d04773dfb4fcdf1d9b90d77342c6b82a87c065ad1f7f16e9e576ef59a0f05a5bad2751536093255a7e80cfb765f8362c266d4e884c2df4155fbc3  luv-1.30.1-0.tar.gz
dedd95fa1659b99b1acc123503dd52c3e7bc2f7565e7e2353e06bc7bde1e64df557cdbc6fc5ee604fb99b15258f9ba9fba983c066631cbe15b8575121ab51427  libluv.pc.in"