blob: cd6122780850e8722a20537cb418012f04419597 (
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
|
# Maintainer: Tobias Backer Dirks <omgitsaheadcrab@gmail.com>
# Contributor: Ivan "Penter" <ivaiva1999ivaiva@gmail.com>
pkgname=cpr-git
pkgver=1.10.1.r20.ge65e685
pkgrel=1
pkgdesc="C++ Requests: Curl for People"
arch=(x86_64 i686)
url="https://github.com/libcpr/cpr"
license=(MIT)
depends=(glibc gcc-libs curl openssl)
makedepends=(git cmake )
provides=(cpr)
conflicts=(cpr)
source=("git+${url}.git")
sha512sums=("SKIP")
pkgver() {
cd cpr
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build -S cpr \
-Wno-dev \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCPR_BUILD_TESTS=OFF \
-DCPR_USE_SYSTEM_CURL=ON
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -D cpr/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|