# Maintainer: Yonggang Li pkgname=azure-storage-cpp pkgdesc='Microsoft Azure Storage Client Library for C++' pkgver=7.5.0 # A rebuild is needed each time boost has its version updated. # Note: cpprestsdk itself doesn't link with and boost library files. But # azure-storeage-cpp will. pkgrel=4 arch=('x86_64') url='https://github.com/Azure/azure-storage-cpp' license=('APACHE') depends=( #'pkgconf' 'libxml2' #'util-linux-libs' 'util-linux' # Depending on uuid on Ubuntu means depending on util-linux on Archlinux #'boost-libs' 'boost' 'cpprestsdk' # 'openssl' is already a dependency of aur/cpprestsdk # 'xz' is already a dependency of zstd -> boost-libs and libxml2. Still no idea why liblzma.so # got linked to libazurestorage.so # 'icu' is already a dependency of libxml2. Still no idea why libicudata.so ,libicui18n.so and # libicuuc.so got linked to libazurestorage.so ) # Testing requires some actual azure storage account information so it cannot be run when making # a package. #checkdepends=( # 'unittestpp' #) makedepends=( 'cmake' ) source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Azure/azure-storage-cpp/archive/v${pkgver}.tar.gz") sha256sums=('446a821d115949f6511b7eb01e6a0e4f014b17bfeba0f3dc33a51750a9d5eca5') build() { _cmake_args=( -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr #-DBUILD_TESTS=OFF \ # Default is OFF ) cd "${srcdir}" mkdir -p build cd build cmake ${_cmake_args[@]} "${srcdir}/${pkgname}-${pkgver}/Microsoft.WindowsAzure.Storage" cmake --build . --config Release } package() { cd "${srcdir}/build" DESTDIR="${pkgdir}" make install install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }