blob: c372114452ab40e1389aecc40e97261aa7adcc17 (
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
|
# Maintainer: Javier TiĆ” <javier dot tia at gmail dot com>
# Contributor: Daan De Meyer <daan.j.demeyer@gmail.com>
pkgname=reproc
pkgver=14.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=('e5f61631a810f9232cb2b75ffdaa53540b7477995c4e7e5edb312dcf5f431b67')
build() {
cmake \
-S "${pkgname}-${pkgver}" \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DREPROCXX=ON \
-DREPROC_TEST=ON \
../
cmake --build build
}
check() {
cmake --build build --target test
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -D --mode=644 "${srcdir}/${pkgname}-${pkgver}"/LICENSE \
"${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}
# vim:set ts=2 sw=2 et:
|