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

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


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

Update to 0.5.0

Modified:
  google-glog/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-11 17:28:05 UTC (rev 930297)
+++ PKGBUILD	2021-05-11 17:28:11 UTC (rev 930298)
@@ -2,31 +2,28 @@
 # Contributor: Ian Yang <doit.ian at gmail.com>
 
 pkgname=google-glog
-pkgver=0.4.0
-pkgrel=2
+pkgver=0.5.0
+pkgrel=1
 pkgdesc="Logging library for C++"
 arch=('x86_64')
 license=('custom:BSD3')
 url='https://github.com/google/glog'
-depends=('gcc-libs')
+depends=('gflags')
+makedepends=('cmake')
 source=("glog-$pkgver.tar.gz::https://github.com/google/glog/archive/v$pkgver.tar.gz")
-sha512sums=('b585f1819ade2075f6b61dc5aaca5c3f9d25601dba2bd08b6c49b96ac5f79db23c6b7f2042df003f7130497dd7241fcaa8b107d1f97385cb66ce52d3c554b176')
+sha512sums=('445e4338f3d81cd0b065f2da9c6ce343c243263ca144cea424ef97531a4e9e09c06ffd6942ac01c5213a8003c75cfbbede3c4028d12f0134f23ff29314769c1a')
 
 build() {
-  cd glog-$pkgver
-
-  ./autogen.sh
-  ./configure --prefix=/usr
-  make
+  cmake -B build -S glog-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  cmake --build build
 }
 
 package() {
-  cd glog-$pkgver
+  DESTDIR="$pkgdir" cmake --install build
 
-  make DESTDIR="$pkgdir" install
-
   # Lazy way of dealing with conflicting man and info pages...
-  rm -rf "$pkgdir"/usr/share
+#  rm -rf "$pkgdir"/usr/share
 
-  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+  install -Dm644 glog-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
 }



More information about the arch-commits mailing list