[arch-commits] Commit in unittestpp/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 16:45:19 UTC 2020
Date: Tuesday, July 7, 2020 @ 16:45:18
Author: felixonmars
Revision: 659396
archrelease: copy trunk to community-staging-x86_64
Added:
unittestpp/repos/community-staging-x86_64/
unittestpp/repos/community-staging-x86_64/PKGBUILD
(from rev 659395, unittestpp/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: unittestpp/repos/community-staging-x86_64/PKGBUILD (from rev 659395, unittestpp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 16:45:18 UTC (rev 659396)
@@ -0,0 +1,39 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Martin Wimpress <code at flexion.org>
+# Contributor: Jorge Araya Navarro <elcorreo at deshackra.com>
+# Contributor: Piotr Beling <qwak at w8.pl>
+# Contributor: Vianney le Clément <vleclement AT gmail · com>
+
+pkgname=unittestpp
+pkgver=2.0.0
+pkgrel=3
+pkgdesc='Lightweight unit testing framework for C++'
+url='https://github.com/unittest-cpp/unittest-cpp/'
+arch=('x86_64')
+license=('MIT')
+depends=('gcc-libs')
+makedepends=('cmake')
+options=('staticlibs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/unittest-cpp/unittest-cpp/archive/v${pkgver}.tar.gz)
+sha256sums=('74852198877dc2fdebdc4e5e9bd074018bf8ee03a13de139bfe41f4585b2f5b9')
+sha512sums=('39318f4ed31534c116679a3257bf1438a6c4b3bef1894dfd40aea934950c6c8197af6a7f61539b8e9ddc67327c9388d7e8a6f8a3e0e966ad26c07554e2429cab')
+
+prepare() {
+ mkdir -p unittest-cpp-${pkgver}/build
+}
+
+build() {
+ cd unittest-cpp-${pkgver}/build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+ make all
+}
+
+package() {
+ cd unittest-cpp-${pkgver}
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list