[arch-commits] Commit in libwhereami/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Thore Bödecker foxxx0 at archlinux.org
Tue Sep 24 09:02:33 UTC 2019


    Date: Tuesday, September 24, 2019 @ 09:02:33
  Author: foxxx0
Revision: 511627

archrelease: copy trunk to staging-x86_64

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

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

Copied: libwhereami/repos/staging-x86_64/PKGBUILD (from rev 511626, libwhereami/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2019-09-24 09:02:33 UTC (rev 511627)
@@ -0,0 +1,49 @@
+# 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.0
+pkgrel=2
+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=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha512sums=('6ba398b7c2889d41757e5cc77be1e6b86c3ad3cec59432adb5debb39d37ee1b01aa12871944d27c5af7e5abff9f1b8e59d43f16730b91fb39212ec83967cc2c8')
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  mkdir -p build
+  cd build
+
+  cmake \
+    -DCMAKE_BUILD_TYPE=None \
+    -DENABLE_CXX_WERROR=OFF \
+    -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+    -DBUILD_SHARED_LIBS=ON \
+    ..
+  make
+}
+
+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