Run testsuite of cmake-format

This commit is contained in:
Martchus 2020-01-24 13:58:30 +01:00
parent 797c3faa92
commit 6cda2100c6
1 changed files with 10 additions and 1 deletions

View File

@ -5,15 +5,24 @@
pkgname=cmake-format
pkgver=0.6.7
pkgrel=1
pkgrel=2
pkgdesc='Source code formatter for CMake listfiles'
arch=('any')
url='https://github.com/cheshirekow/cmake_format'
license=('GPL3')
depends=('python-setuptools' 'python-yaml' 'python-jinja')
checkdepends=('cmake' 'python-pgpy')
source=("$pkgname-$pkgver.tar.gz::https://github.com/cheshirekow/cmake_format/archive/v${pkgver}.tar.gz")
sha512sums=('1d1a637ea5e91540030c3b28606bc211d8d6951d96d84b0318c5a9261be06dd81c929827eae3090aa75004be70d059fe6f5b580854ea093c1aebe19b087bb734')
check() {
mkdir "$srcdir/check"
cd "$srcdir/check"
export CTEST_OUTPUT_ON_FAILURE=1
cmake "$srcdir/cmake_format-$pkgver"
ctest --exclude-regex cmake_format-command-db-test
}
package() {
cd "$srcdir/cmake_format-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1