[arch-commits] Commit in libwhereami/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Dec 6 20:40:35 UTC 2020
Date: Sunday, December 6, 2020 @ 20:40:35
Author: felixonmars
Revision: 771154
archrelease: copy trunk to community-staging-x86_64
Added:
libwhereami/repos/community-staging-x86_64/
libwhereami/repos/community-staging-x86_64/PKGBUILD
(from rev 771153, libwhereami/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: libwhereami/repos/community-staging-x86_64/PKGBUILD (from rev 771153, libwhereami/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-12-06 20:40:35 UTC (rev 771154)
@@ -0,0 +1,45 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Tim Meusel <tim at bastelfreak.de>
+
+pkgname=libwhereami
+pkgver=0.5.0
+pkgrel=3
+pkgdesc='Library to report hypervisor information from inside a VM'
+arch=('x86_64')
+url='https://github.com/puppetlabs/libwhereami'
+license=('APACHE')
+depends=('boost-libs' 'gcc-libs' 'glibc' 'leatherman' 'leatherman_execution.so'
+ 'leatherman_file_util.so' 'leatherman_util.so' 'leatherman_logging.so'
+ 'leatherman_locale.so')
+makedepends=('boost' 'cmake' 'rapidjson' 'curl')
+checkdepends=('python')
+provides=('libwhereami.so')
+source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('e9a0332f4ec0a2e6201cdf6212f2f1ced5a948e94aaa638c8d8a69f7306828b6168924775788b31316eecab59377a5ebd9310293e8e708e418c68fe47b248c13')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ cmake \
+ -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DENABLE_CXX_WERROR=OFF \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DBUILD_SHARED_LIBS=ON
+ make -C build
+}
+
+check() {
+ cd ${pkgname}-${pkgver}/build
+ make test
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list