mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
34 lines
835 B
Bash
34 lines
835 B
Bash
pkgname=unittestpp
|
|
pkgver=1.6.1
|
|
pkgrel=2
|
|
pkgdesc="A lightweight unit testing framework for C++"
|
|
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')
|
|
|
|
build() {
|
|
cd unittest-cpp-$pkgver
|
|
|
|
cmake . \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
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
|
|
}
|