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

Antonio Rojas arojas at archlinux.org
Tue May 11 17:28:22 UTC 2021


    Date: Tuesday, May 11, 2021 @ 17:28:22
  Author: arojas
Revision: 930299

archrelease: copy trunk to community-testing-x86_64

Added:
  google-glog/repos/community-testing-x86_64/
  google-glog/repos/community-testing-x86_64/PKGBUILD
    (from rev 930298, google-glog/trunk/PKGBUILD)

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

Copied: google-glog/repos/community-testing-x86_64/PKGBUILD (from rev 930298, google-glog/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-05-11 17:28:22 UTC (rev 930299)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ian Yang <doit.ian at gmail.com>
+
+pkgname=google-glog
+pkgver=0.5.0
+pkgrel=1
+pkgdesc="Logging library for C++"
+arch=('x86_64')
+license=('custom:BSD3')
+url='https://github.com/google/glog'
+depends=('gflags')
+makedepends=('cmake')
+source=("glog-$pkgver.tar.gz::https://github.com/google/glog/archive/v$pkgver.tar.gz")
+sha512sums=('445e4338f3d81cd0b065f2da9c6ce343c243263ca144cea424ef97531a4e9e09c06ffd6942ac01c5213a8003c75cfbbede3c4028d12f0134f23ff29314769c1a')
+
+build() {
+  cmake -B build -S glog-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+
+  # Lazy way of dealing with conflicting man and info pages...
+#  rm -rf "$pkgdir"/usr/share
+
+  install -Dm644 glog-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list