blob: bc368b95a6a537a5a0c1812a2a62f7254bba777b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Ian Yang <doit.ian@gmail.com>
pkgname=google-glog-static
pkgver=0.3.5
pkgrel=1
pkgdesc="Logging library for C++"
arch=('x86_64')
license=('custom:BSD3')
url='https://github.com/google/glog'
depends=('gcc-libs')
options=('staticlibs')
source=("glog-$pkgver.tar.gz::https://github.com/google/glog/archive/v$pkgver.tar.gz")
provides=('google-glog')
conflicts=('google-glog')
sha256sums=('7580e408a2c0b5a89ca214739978ce6ff480b5e7d8d7698a2aa92fadc484d1e0')
build() {
cd glog-$pkgver
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd glog-$pkgver/build
make DESTDIR="$pkgdir" install
# Lazy way of dealing with conflicting man and info pages...
rm -rf "$pkgdir"/usr/share
install -Dm644 ../COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
|