mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# 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=2.0.0
|
|
pkgrel=1
|
|
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')
|
|
|
|
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}"
|
|
}
|