# Contributor: Leo # Maintainer: Leo 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"