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

Levente Polyak anthraxx at archlinux.org
Sat May 23 16:15:18 UTC 2020


    Date: Saturday, May 23, 2020 @ 16:15:17
  Author: anthraxx
Revision: 632162

archrelease: copy trunk to community-staging-x86_64

Added:
  libwhereami/repos/community-staging-x86_64/
  libwhereami/repos/community-staging-x86_64/PKGBUILD
    (from rev 632161, libwhereami/trunk/PKGBUILD)

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

Copied: libwhereami/repos/community-staging-x86_64/PKGBUILD (from rev 632161, libwhereami/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-05-23 16:15:17 UTC (rev 632162)
@@ -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.3.1
+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=('89c54a945264130be0a1d662ee7e1d8756bfa84a603066fb78848049e3972d15ab5849161ca38380a45f7559dc59ed492fc6ea948ac3604096f66c6990582071')
+
+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