# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=rinutils pkgver=0.8.0 pkgrel=0 pkgdesc="C11 / gnu11 utilities C library" url="https://www.shlomifish.org/open-source/projects/" arch="noarch" license="MIT" makedepends=" cmake cmocka-dev perl " checkdepends=" perl-dev perl-env-path perl-inline perl-inline-c perl-parse-recdescent perl-path-tiny perl-string-shellquote perl-test-differences perl-utils " subpackages="$pkgname-dev" source="https://github.com/shlomif/rinutils/releases/download/$pkgver/rinutils-$pkgver.tar.xz" options="!check" # Requires unavailable perl modules Test::TrainlingSpace module build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="06bbcdb5092762bf2ed92d4082eca17e8dc0e822ce8634f8ec8782fe7eccb4b954c081dbba3f1e2f72e0285607a813f020d4277af77accc43135bde50153359d rinutils-0.8.0.tar.xz"