Package Details: reproc 14.2.5-2

Git Clone URL: https://aur.archlinux.org/reproc.git (read-only, click to copy)
Package Base: reproc
Description: Cross-platform library that simplifies working with external CLI applications from C and C++
Upstream URL: https://github.com/DaanDeMeyer/reproc
Keywords: c c++ cross-platform library
Licenses: MIT
Submitter: jetm
Maintainer: jetm
Last Packager: jetm
Votes: 6
Popularity: 0.24
First Submitted: 2018-09-29 20:05 (UTC)
Last Updated: 2024-08-05 20:11 (UTC)

Latest Comments

« First ‹ Previous 1 2

jetm commented on 2019-07-21 15:08 (UTC)

@DaanDeMeyer: Using the new cmake feature. Thank you for the changes!

DaanDeMeyer commented on 2019-07-20 15:00 (UTC)

With the latest CMake release, a generator agnostic PKGBUILD can be made:

pkgname=reproc
pkgver=8.0.0
pkgrel=1
pkgdesc='Cross-platform library that simplifies working with external CLI applications from C and C++'
arch=('x86_64')
url='https://github.com/DaanDeMeyer/reproc'
license=('MIT')
makedepends=('cmake' 'gcc')
source=("${url}/archive/v${pkgver}".tar.gz)
sha256sums=('50999f4df97704f54c3ae677ef27209e621827d51651cb3c2426e6eb7c49b8dc')

build() {
  cmake \
    -S "${pkgname}-${pkgver}" \
    -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DBUILD_SHARED_LIBS=ON \
    -DREPROC++=ON \
    -DREPROC_TEST=ON \
    -DREPROC_EXAMPLES=ON \
    ../
  cmake --build build
}

check() {
  build/test
}

package() {
  cmake --install build --prefix "${pkgdir}"/usr
  install -D --mode=644 "${srcdir}/${pkgname}-${pkgver}"/LICENSE \
    "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}

-S indicates the source directory (where the CMakeLists.txt) is located. -B indicates the build directory.

jetm commented on 2019-07-06 23:26 (UTC)

@DaanDeMeyer: run it the test now. Thanks, for the suggestion!

DaanDeMeyer commented on 2019-07-06 23:01 (UTC)

Currently, the PKGBUILD only builds the tests but does not execute them. The tests are executed by running the build/test binary. There should be no need to build the tests manually as they are built automatically when REPROC_TEST is enabled.

jetm commented on 2018-12-03 21:27 (UTC)

@DaanDeMeyer: Yes, my bad. Fixed submitted. Thank you!

DaanDeMeyer commented on 2018-12-03 21:08 (UTC)

You made a small mistake (-REPROC++=ON should be -DREPROC++=ON)

jetm commented on 2018-12-03 21:00 (UTC) (edited on 2018-12-03 21:26 (UTC) by jetm)

@DaanDeMeyer: Thank you. I have updated the package updating to REPROC++ and REPROC_EXAMPLES.

DaanDeMeyer commented on 2018-12-03 20:50 (UTC)

In 3.0.0, REPROCXX got renamed to REPROC++. Also, REPROC_BUILD_EXAMPLES has been renamed to REPROC_EXAMPLES.

jetm commented on 2018-11-22 13:54 (UTC) (edited on 2018-11-22 13:54 (UTC) by jetm)

@DaanDeMeyer: Thank you for the suggestions. I have updated the package with them.

DaanDeMeyer commented on 2018-11-21 17:41 (UTC)

I've released reproc 2.0.0. Since the C++ support is now a separate library and doesn't affect the C library in any way, I propose to enable REPROCXX so users can depend on the C++ support as well.

It might also be a good idea to replace the mv command from lib64/ to lib/ by specifying the CMake option CMAKE_INSTALL_LIBDIR=lib. This way, CMake puts the library files in lib/ instead of lib64/ when installing reproc which removes the need for the mv command after installing.

REPROC_INSTALL is also enabled by default now so it can be removed from the PKGBUILD.