summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dccca9cf1bc66ae11bda256618c363e758d3b960 (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
# Maintainer: Alex Henrie <alexhenrie24@gmail.com>
pkgname=restclient-cpp-git
pkgver=0.5.2.r45.gfdf722b
pkgrel=1
pkgdesc="A simple REST client for C++"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/mrtazz/restclient-cpp"
license=('MIT')
depends=('curl')
makedepends=('cmake')
provides=('restclient-cpp')
conflicts=('restclient-cpp')
options=()
source=('git+https://github.com/mrtazz/restclient-cpp.git')
b2sums=('SKIP')

pkgver() {
    cd restclient-cpp
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd restclient-cpp
    cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
    cmake --build build
}

package() {
    cd restclient-cpp
    DESTDIR="$pkgdir/" cmake --install build
}