[arch-commits] Commit in libwhereami/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Wed Aug 14 08:44:07 UTC 2019


    Date: Wednesday, August 14, 2019 @ 08:44:07
  Author: anthraxx
Revision: 499185

upgpkg: libwhereami 0.2.2-2 (build against shared libs, provide sonames)

Modified:
  libwhereami/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-14 08:39:38 UTC (rev 499184)
+++ PKGBUILD	2019-08-14 08:44:07 UTC (rev 499185)
@@ -1,26 +1,31 @@
 # 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.2.2
-pkgrel=1
+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')
-makedepends=('boost' 'boost-libs' 'cmake' 'java-environment>=10' 'leatherman' 'curl')
+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=('26f243c81ae9dae8c56aa649b6f53e4f15dcca8afb39cacf01a097de229acbdc86be930dab532c1d2a45c4e01a35c5e57acfeed36c80a236af1186548832ee9a')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${pkgname}-${pkgver}
 
-  mkdir build
+  mkdir -p build
   cd build
 
   cmake \
+    -DCMAKE_BUILD_TYPE=None \
     -DENABLE_CXX_WERROR=OFF \
     -DCMAKE_INSTALL_PREFIX:PATH=/usr \
     -DBUILD_SHARED_LIBS=ON \
@@ -29,13 +34,16 @@
 }
 
 check() {
-  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  cd ${pkgname}-${pkgver}/build
   make test
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  cd ${pkgname}-${pkgver}
 
-  make DESTDIR="${pkgdir}" install
-  install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  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