diff --git a/unittestpp/PKGBUILD b/unittestpp/PKGBUILD index 06c03c1fc..f134315f0 100644 --- a/unittestpp/PKGBUILD +++ b/unittestpp/PKGBUILD @@ -1,33 +1,37 @@ +# Contributions from Arch: +# Maintainer: Levente Polyak +# Contributor: Martin Wimpress +# Contributor: Jorge Araya Navarro +# Contributor: Piotr Beling +# Contributor: Vianney le Clément + 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}" } diff --git a/unittestpp/unittest++.pc b/unittestpp/unittest++.pc deleted file mode 100644 index 3033450c2..000000000 --- a/unittestpp/unittest++.pc +++ /dev/null @@ -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++ \ No newline at end of file