forked from git-for-windows/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
32 lines (29 loc) · 1.16 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: David Grayson <[email protected]>
_realname=catch
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.6.0
pkgrel=1
pkgdesc="Multi-paradigm automated test framework for C++ and Objective-C (mingw-w64)"
arch=('any')
url='https://github.com/philsquared/Catch'
checkdepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-cmake")
license=('custom')
source=(${_realname}-${pkgver}.tar.gz::https://github.com/philsquared/Catch/archive/v${pkgver}.tar.gz)
sha256sums=('83532346983c43963cf89a69c1544be493e6b4cccaf20975e53f5cf2239b73a9')
check() {
rm -rf "${srcdir}/test-${MINGW_CHOST}"
mkdir -p "${srcdir}/test-${MINGW_CHOST}"
cd "${srcdir}/test-${MINGW_CHOST}"
cmake "../Catch-${pkgver}" -G"MSYS Makefiles" -DCMAKE_CXX_FLAGS='--std=gnu++11'
make
./SelfTest.exe
}
package() {
cd "${srcdir}/Catch-${pkgver}"
mkdir -p "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}"
install -m644 LICENSE_1_0.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE_1_0.txt"
mkdir -p "${pkgdir}${MINGW_PREFIX}/include/"
install -m644 single_include/catch.hpp "${pkgdir}${MINGW_PREFIX}/include/"
}