blob: c295abc7c2e774f2799f47f1fcc8632bbdff9943 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Maintainer: John A. Leuenhagen <john@zlima12.com>
pkgname=cpr
pkgver=1.10.5
pkgrel=1
pkgdesc='C++ Requests: Curl for People, a spiritual port of Python Requests.'
arch=('i686' 'x86_64')
url="https://github.com/libcpr/cpr"
license=('MIT')
depends=('curl')
makedepends=('cmake')
source=("https://github.com/libcpr/cpr/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('c8590568996cea918d7cf7ec6845d954b9b95ab2c4980b365f582a665dea08d8')
build() {
cmake -B "$srcdir"/build -S "$srcdir/cpr-$pkgver" \
-DCMAKE_BUILD_TYPE=Release -DCPR_BUILD_TESTS=OFF -DCPR_USE_SYSTEM_CURL=ON
cmake --build "$srcdir"/build
}
package() {
cmake --install "$srcdir"/build --prefix "$pkgdir"/usr
}
|