blob: d9c30d2972f1866202a49c8b4e998e10757d1479 (
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
40
41
42
43
44
45
46
|
# Maintainer: Michael Yang <ohmyarchlinux@protonmail.com>
pkgname=cpprestsdk-git
pkgver=2.1.0.r1705.g1e4717e5
pkgrel=1
pkgdesc='A Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design'
arch=('i686' 'x86_64')
url='https://github.com/Microsoft/cpprestsdk'
license=('MIT')
depends=('boost-libs' 'websocketpp-git-dev' 'openssl>=1.0.0')
makedepends=('git' 'boost' 'cmake>=3.0.0')
conflicts=('cpprestsdk' 'casablanca' 'casablanca-git')
provides=('cpprestsdk')
source=('git+https://github.com/Microsoft/cpprestsdk.git')
sha512sums=('SKIP')
pkgver() {
cd cpprestsdk
git describe | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../cpprestsdk/Release \
-DBUILD_SAMPLES=OFF \
-DCPPREST_EXPORT_DIR=lib/cmake/cpprestsdk \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
check() {
cd build
make test
}
package() {
make -C build DESTDIR="${pkgdir}" install
cd cpprestsdk
install -Dm644 license.txt "${pkgdir}"/usr/share/licenses/cpprestsdk-git/license.txt
install -Dm644 ThirdPartyNotices.txt "${pkgdir}"/usr/share/licenses/cpprestsdk-git/ThirdPartyNotices.txt
}
|