summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12020-10-07 12:08:05 +0800
committerChocobo12020-10-07 12:24:52 +0800
commitf590b75382e816108fa84540c66a83c88fe5ba05 (patch)
treeb6147f371d355b78612074187eb25f3f9ab844f9 /PKGBUILD
parent530ffb96e25f17944d3f8bd3f235d38e04bd1e13 (diff)
downloadaur-googletest-git.tar.gz
upgpkg: googletest-git 1.10.0.r433.g1fb1bb23-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 11 insertions, 23 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e89e433feec..64079b2e683 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=googletest-git
-pkgver=1.8.1.r244.gd5932506
+pkgver=1.10.0.r433.g1fb1bb23
pkgrel=1
pkgdesc="Google's C++ test framework"
arch=('i686' 'x86_64')
@@ -22,41 +22,29 @@ pkgver() {
}
build() {
- cd "$srcdir"
+ cd "googletest"
- mkdir -p "build" && cd "build"
cmake \
+ -B "_build" \
+ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
- -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
- -Dgtest_build_tests=ON \
- ../"googletest"
- make
-
- # For g{test,mock}-config
- cd "$srcdir/googletest"
- autoreconf -fi
- ./configure --prefix="/usr"
- make
+ ./
+ make -C "_build"
}
check() {
cd "googletest"
- #make -C "$srcdir/build" test
+ #make -C "_build" test
}
package() {
- cd "$srcdir"
-
- make -C "build" DESTDIR="$pkgdir" install
-
- cd "$srcdir/googletest"
- install -Dm755 "googletest/scripts/gtest-config" -t "$pkgdir/usr/bin"
- install -Dm755 "googlemock/scripts/gmock-config" -t "$pkgdir/usr/bin"
+ cd "googletest"
- install -Dm644 "googletest/m4/gtest.m4" -t "$pkgdir/usr/share/aclocal"
+ make -C "_build" DESTDIR="$pkgdir" install
+ install -Dm755 "googletest/scripts/gtest-config.in" -t "$pkgdir/usr/bin"
- install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/gtest/LICENSE"
+ install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/gtest"
}