mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 02:17:14 +08:00
[skip-ci] unittestpp: update to 2.0.0
This commit is contained in:
parent
2e7679c0a1
commit
94bf60c45e
@ -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
|
pkgname=unittestpp
|
||||||
pkgver=1.6.1
|
pkgver=2.0.0
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc="A lightweight unit testing framework for C++"
|
pkgdesc='Lightweight unit testing framework for C++'
|
||||||
|
url='https://github.com/unittest-cpp/unittest-cpp/'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://unittest-cpp.sourceforge.net/"
|
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('gcc-libs')
|
depends=('gcc-libs')
|
||||||
makedepends=('cmake')
|
makedepends=('cmake')
|
||||||
options=('staticlibs')
|
options=('staticlibs')
|
||||||
source=("$pkgname-$pkgver::https://github.com/unittest-cpp/unittest-cpp/archive/v${pkgver}.tar.gz"
|
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/unittest-cpp/unittest-cpp/archive/v${pkgver}.tar.gz)
|
||||||
'unittest++.pc')
|
sha256sums=('74852198877dc2fdebdc4e5e9bd074018bf8ee03a13de139bfe41f4585b2f5b9')
|
||||||
sha1sums=('7ea23c4f2f1efd75e091ac8900571e8a7e47e4f4'
|
|
||||||
'585f1e2348dffffd2168369890453c011e80a5e3')
|
prepare() {
|
||||||
|
mkdir -p unittest-cpp-${pkgver}/build
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd unittest-cpp-$pkgver
|
cd unittest-cpp-${pkgver}/build
|
||||||
|
cmake .. \
|
||||||
cmake . \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
make all
|
make all
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -dm755 "${pkgdir}/usr/lib/pkgconfig"
|
cd unittest-cpp-${pkgver}
|
||||||
install -m644 unittest++.pc "${pkgdir}/usr/lib/pkgconfig"
|
make -C build DESTDIR="${pkgdir}" install
|
||||||
|
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||||
cd unittest-cpp-$pkgver
|
|
||||||
|
|
||||||
make DESTDIR="$pkgdir" install
|
|
||||||
|
|
||||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
||||||
}
|
}
|
||||||
|
@ -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++
|
|
Loading…
Reference in New Issue
Block a user