# Contributor: Leo # Maintainer: Leo pkgname=libluv _release=0 pkgver=1.32.0.$_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="935a27e04aa13dc433a05512c0d332157d9cdc63a8688e034b07bd9e303ee37ea3e19aa350ac4858075bbc23a9f976aa295424faa77f7e7863060a744e1e1e83 luv-1.32.0-0.tar.gz"