Sign in New API Help About

cpr

738 bytes of Bash
Created 8 months, 2 weeks ago by yochanan — expires in 111 days
Viewed 102 times
https://dpaste.com/4X52RLZFP
COPY TO CLIPBOARD SOFT WRAP RAW TEXT DUPLICATE DIFF
pkgname=cpr
pkgver=1.7.2
pkgrel=3
pkgdesc='C++ Requests: Curl for People, a spiritual port of Python Requests.'
arch=('x86_64')
url="https://github.com/libcpr/cpr"
license=('MIT')
depends=('curl')
makedepends=('cmake')
provides=('libcpr.so=1')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('aa38a414fe2ffc49af13a08b6ab34df825fdd2e7a1213d032d835a779e14176f')

build() {
  cmake -B build -S "$pkgname-$pkgver" \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DCPR_FORCE_USE_SYSTEM_CURL='ON' \
    -Wno-dev
    cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build

  cd "$pkgname-$pkgver"
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}

Share: