[skip-ci] unittestpp: update to 2.0.0

This commit is contained in:
Jeff Huang 2018-10-25 05:00:04 +02:00
parent 2e7679c0a1
commit 94bf60c45e
2 changed files with 25 additions and 35 deletions

View File

@ -1,33 +1,37 @@
# Contributions from Arch:
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Martin Wimpress <code@flexion.org>
# Contributor: Jorge Araya Navarro <elcorreo@deshackra.com>
# Contributor: Piotr Beling <qwak@w8.pl>
# Contributor: Vianney le Clément <vleclement AT gmail · com>
pkgname=unittestpp
pkgver=1.6.1
pkgrel=2
pkgdesc="A lightweight unit testing framework for C++"
pkgver=2.0.0
pkgrel=1
pkgdesc='Lightweight unit testing framework for C++'
url='https://github.com/unittest-cpp/unittest-cpp/'
arch=('x86_64')
url="http://unittest-cpp.sourceforge.net/"
license=('MIT')
depends=('gcc-libs')
makedepends=('cmake')
options=('staticlibs')
source=("$pkgname-$pkgver::https://github.com/unittest-cpp/unittest-cpp/archive/v${pkgver}.tar.gz"
'unittest++.pc')
sha1sums=('7ea23c4f2f1efd75e091ac8900571e8a7e47e4f4'
'585f1e2348dffffd2168369890453c011e80a5e3')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/unittest-cpp/unittest-cpp/archive/v${pkgver}.tar.gz)
sha256sums=('74852198877dc2fdebdc4e5e9bd074018bf8ee03a13de139bfe41f4585b2f5b9')
prepare() {
mkdir -p unittest-cpp-${pkgver}/build
}
build() {
cd unittest-cpp-$pkgver
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr
make all
cd unittest-cpp-${pkgver}/build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make all
}
package() {
install -dm755 "${pkgdir}/usr/lib/pkgconfig"
install -m644 unittest++.pc "${pkgdir}/usr/lib/pkgconfig"
cd unittest-cpp-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd unittest-cpp-${pkgver}
make -C build DESTDIR="${pkgdir}" install
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

View File

@ -1,14 +0,0 @@
# pkg-config source file
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: unittest++
Description: UnitTest++ is a unit testing framework for C++
Version: 1.4
Requires:
Conflicts:
Libs: -L${libdir} -lUnitTest++
Cflags: -I${includedir}/unittest++