1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Ian Yang <doit.ian@gmail.com>
7 pkgdesc="Logging library for C++"
9 license=('custom:BSD3')
10 url='https://github.com/google/glog'
13 source=("glog-$pkgver.tar.gz::https://github.com/google/glog/archive/v$pkgver.tar.gz")
14 sha512sums=('fd2c42583d0dd72c790a8cf888f328a64447c5fb9d99b2e2a3833d70c102cb0eb9ae874632c2732424cc86216c8a076a3e24b23a793eaddb5da8a1dc52ba9226')
17 cmake -B build -S glog-$pkgver \
18 -DCMAKE_INSTALL_PREFIX=/usr
23 DESTDIR="$pkgdir" cmake --install build
25 # Lazy way of dealing with conflicting man and info pages...
26 # rm -rf "$pkgdir"/usr/share
28 install -Dm644 glog-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname