[arch-commits] Commit in libwhereami/repos (2 files)

Tim Meusel bastelfreak at archlinux.org
Sun May 16 11:31:17 UTC 2021


    Date: Sunday, May 16, 2021 @ 11:31:17
  Author: bastelfreak
Revision: 935742

archrelease: copy trunk to community-testing-x86_64

Added:
  libwhereami/repos/community-testing-x86_64/
  libwhereami/repos/community-testing-x86_64/PKGBUILD
    (from rev 935741, libwhereami/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: libwhereami/repos/community-testing-x86_64/PKGBUILD (from rev 935741, libwhereami/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-05-16 11:31:17 UTC (rev 935742)
@@ -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=5
+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