summaryrefslogtreecommitdiff
path: root/community/google-glog/PKGBUILD
blob: f30efef3ccdcc51e7dae57f2cfb75f0a1b9224a0 (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
# $Id: PKGBUILD 80554 2012-11-25 02:18:10Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Ian Yang <doit.ian@gmail.com>

pkgname=google-glog
pkgver=0.3.2
pkgrel=1
pkgdesc="Logging library for C++"
arch=('i686' 'x86_64')
license=('custom:BSD3')
url="http://code.google.com/p/google-glog/"
depends=('gcc-libs')
makedepends=('make' 'gcc')
options=('!libtool')
source=("http://google-glog.googlecode.com/files/glog-${pkgver}.tar.gz")
md5sums=('897fbff90d91ea2b6d6e78c8cea641cc')

build() {
  cd "$srcdir/glog-${pkgver}"

  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/glog-${pkgver}"
  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"
}