upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / google-glog / repos / community-x86_64 / PKGBUILD
blobd12c233dd31f7dd224b5c461cd49e3c3a0bbc621
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Ian Yang <doit.ian@gmail.com>
4 pkgname=google-glog
5 pkgver=0.6.0
6 pkgrel=1
7 pkgdesc="Logging library for C++"
8 arch=('x86_64')
9 license=('custom:BSD3')
10 url='https://github.com/google/glog'
11 depends=('gflags')
12 makedepends=('cmake')
13 source=("glog-$pkgver.tar.gz::https://github.com/google/glog/archive/v$pkgver.tar.gz")
14 sha512sums=('fd2c42583d0dd72c790a8cf888f328a64447c5fb9d99b2e2a3833d70c102cb0eb9ae874632c2732424cc86216c8a076a3e24b23a793eaddb5da8a1dc52ba9226')
16 build() {
17   cmake -B build -S glog-$pkgver \
18     -DCMAKE_INSTALL_PREFIX=/usr
19   cmake --build build
22 package() {
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