1 # Maintainer: Thore Bödecker <foxxx0@archlinux.org>
2 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
3 # Contributor: Tim Meusel <tim@bastelfreak.de>
8 pkgdesc='Library to report hypervisor information from inside a VM'
10 url='https://github.com/puppetlabs/libwhereami'
12 depends=('boost-libs' 'gcc-libs' 'glibc' 'leatherman' 'leatherman_execution.so'
13 'leatherman_file_util.so' 'leatherman_util.so' 'leatherman_logging.so'
14 'leatherman_locale.so')
15 makedepends=('boost' 'cmake' 'rapidjson' 'curl')
16 checkdepends=('python')
17 provides=('libwhereami.so')
18 source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
19 sha512sums=('e9a0332f4ec0a2e6201cdf6212f2f1ced5a948e94aaa638c8d8a69f7306828b6168924775788b31316eecab59377a5ebd9310293e8e708e418c68fe47b248c13')
22 cd ${pkgname}-${pkgver}
25 -DCMAKE_BUILD_TYPE=None \
26 -DENABLE_CXX_WERROR=OFF \
27 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
28 -DBUILD_SHARED_LIBS=ON
33 cd ${pkgname}-${pkgver}/build
38 cd ${pkgname}-${pkgver}
40 make -C build DESTDIR="${pkgdir}" install
41 install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
42 install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"