summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b13cdc8bd5c995e9d4031ed42dbe3b2ae94bebc7 (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: Sasasu (i@sasa.su)
pkgname=azure-sdk-cpp-git
pkgver=1.0
pkgrel=1
pkgdesc='Azure SDK for C++'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
url='https://github.com/Azure/azure-sdk-for-cpp'
license=('MIT')
provides=('azure-sdk-cpp')
depends=(openssl curl)
makedepends=(cmake git)
source=("git+https://github.com/Azure/azure-sdk-for-cpp.git")
sha256sums=('SKIP')

build() {
  cd azure-sdk-for-cpp

  cmake \
    -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
    .
  cmake --build build
}

package() {
  cd azure-sdk-for-cpp

  cmake --build build --target install -- DESTDIR="$pkgdir"
}