[arch-commits] Commit in catch2/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Wed Nov 27 20:33:54 UTC 2019
Date: Wednesday, November 27, 2019 @ 20:33:54
Author: anthraxx
Revision: 534204
upgpkg: catch2 2.11.0-1
Modified:
catch2/trunk/PKGBUILD
----------+
PKGBUILD | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-27 20:29:56 UTC (rev 534203)
+++ PKGBUILD 2019-11-27 20:33:54 UTC (rev 534204)
@@ -3,18 +3,28 @@
# Contributor: Bart Verhagen <barrie.verhagen at gmail dot com>
pkgname=catch2
-pkgver=2.10.2
+_gitcommit=e1c9d5569dc4135babb9c81891d70a8ba8ed938c
+pkgver=2.11.0
pkgrel=1
pkgdesc="Modern, C++-native, header-only, test framework for unit-tests, TDD and BDD"
arch=('any')
url="https://github.com/catchorg/catch2"
license=('Boost')
-makedepends=('cmake' 'python') # python seems to be necessary for building tests (FS#60273)
-source=("https://github.com/catchorg/Catch2/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('79aa46ee6c5a87bc5306bfffc6ecde6a1ad6327715b208ee2e846873f282a494')
+makedepends=('git' 'cmake' 'python') # python seems to be necessary for building tests (FS#60273)
+source=(${pkgname}::"git+https://github.com/catchorg/Catch2#commit=${_gitcommit}?signed")
+sha256sums=('SKIP')
+validpgpkeys=(
+ E29C46F3B8A7502860793B7DECC9C20E314B2360 # Martin Hořeňovský
+ 81E70B717FFB27AFDB45F52090BBFF120F9C087B # Jozef Grajciar
+)
+pkgver() {
+ cd ${pkgname}
+ git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
build() {
- cd Catch2-$pkgver
+ cd ${pkgname}
mkdir -p build
cd build
@@ -30,12 +40,12 @@
}
check() {
- cd Catch2-$pkgver/build
+ cd ${pkgname}/build
make test
}
package() {
- cd Catch2-$pkgver/build
+ cd ${pkgname}/build
make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list