blob: 4a02c37249394235467e31fedc99193f4c5261dd (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Yunhui Fu <yhfudev@gmail.com>
pkgname=google-glog-git
pkgver=r212.0472b91
pkgrel=2
pkgdesc="Logging library for C++, compiled with cmake"
arch=('i686' 'x86_64')
license=('custom:BSD3')
url='https://github.com/google/glog'
depends=('gcc-libs')
makedepends=('make' 'gcc' 'git')
conflicts=('google-glog')
provides=('google-glog')
source=(
#"glog-$pkgver::https://github.com/google/glog/archive/v$pkgver.tar.gz"
"${pkgname}::git+https://github.com/google/glog.git"
)
pkgver_git() {
cd "${srcdir}/${pkgname}"
#local ver="$(git show | grep commit | awk '{print $2}' )"
#printf "r%s" "${ver//[[:alpha:]]}"
#echo ${ver:0:7}
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
pkgver() {
pkgver_git
}
build4git() {
cd "${srcdir}/${pkgname}"
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF ..
make
}
build() {
build4git
}
package4git() {
cd "${srcdir}/${pkgname}/build"
make DESTDIR="$pkgdir/" install
mv "$pkgdir/usr/local/lib/" "$pkgdir/usr/lib/"
}
package() {
package4git
# Lazy way of dealing with conflicting man and info pages...
rm -rf "${pkgdir}/usr/share"
install -Dm644 ${srcdir}/${pkgname}/COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
md5sums=(
'SKIP'
)
|