mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Maintainer: Weng Xuetian <wengxt@gmail.com>
|
|
# Contributor: Alexandre Bique <bique.alexandre@gmail.com>
|
|
# Contributor: Louis R. Marascio <lrm@fitnr.com>
|
|
# Contributor: Cody Maloney <cmaloney@theoreticalchaos.com>
|
|
|
|
pkgname=gtest
|
|
pkgver=1.6.0
|
|
pkgrel=1
|
|
pkgdesc="Google Test - C++ testing utility based on the xUnit framework (like JUnit)"
|
|
arch=('i686' 'x86_64')
|
|
url="http://code.google.com/p/googletest/"
|
|
license=('BSD')
|
|
options=('!libtool')
|
|
depends=('gcc-libs' 'sh')
|
|
makedepends=('python2' 'cmake')
|
|
source=(http://googletest.googlecode.com/files/$pkgname-$pkgver.zip)
|
|
sha1sums=('00d6be170eb9fc3b2198ffdcb1f1d6ba7fc6e621')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
rm -rf build
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
mkdir -pm 0755 $pkgdir/usr/{lib,include/gtest/internal,share/licenses/$pkgname}
|
|
install -m 0644 build/libgtest{,_main}.a $pkgdir/usr/lib/
|
|
install -m 0644 include/gtest/*.h $pkgdir/usr/include/gtest/
|
|
install -m 0644 include/gtest/internal/*.h $pkgdir/usr/include/gtest/internal/
|
|
install -m 0644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
}
|
|
|