2018-12-06 18:05:42 +01:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
2018-12-05 16:54:40 +01:00
|
|
|
pkgname=cmake-format
|
2020-07-18 01:04:05 +02:00
|
|
|
pkgver=0.6.11
|
2020-01-31 13:42:13 +01:00
|
|
|
pkgrel=1
|
2018-12-06 18:05:42 +01:00
|
|
|
pkgdesc='Source code formatter for CMake listfiles'
|
2018-12-05 16:54:40 +01:00
|
|
|
arch=('any')
|
|
|
|
url='https://github.com/cheshirekow/cmake_format'
|
|
|
|
license=('GPL3')
|
2020-01-31 13:42:13 +01:00
|
|
|
depends=('python-setuptools' 'python-six>=1.13.0')
|
2020-07-18 01:04:05 +02:00
|
|
|
optdepends=('python-yaml>=5.3' 'python-jinja>=2.10.3' 'python-argcomplete: automatic shell completion')
|
2020-01-31 13:42:13 +01:00
|
|
|
checkdepends=('cmake')
|
2018-12-05 16:54:40 +01:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/cheshirekow/cmake_format/archive/v${pkgver}.tar.gz")
|
2020-08-02 20:55:24 +02:00
|
|
|
sha512sums=('52b6752d2b62097df790f432ecfb2e3d196950ad49548fa3c68a329f16f9e2d3db2741debe2b3f913894857805b60b1b460a939fd1b34a58efa738175839dea8')
|
2018-12-05 16:54:40 +01:00
|
|
|
|
2020-01-24 13:58:30 +01:00
|
|
|
check() {
|
|
|
|
mkdir "$srcdir/check"
|
|
|
|
cd "$srcdir/check"
|
|
|
|
export CTEST_OUTPUT_ON_FAILURE=1
|
|
|
|
cmake "$srcdir/cmake_format-$pkgver"
|
2020-01-31 13:42:13 +01:00
|
|
|
ctest --exclude-regex 'verify-export|cmake_format-command-db-test|cmake_format-validate-database|cmake_format-doc-verify-README\.rst'
|
|
|
|
|
|
|
|
# note: Excluding the tests cmake_format-validate-database (would require gpg2 and
|
|
|
|
# python-pgpy and currently fails because an internet connection is required) and
|
|
|
|
# cmake_format-command-db-test (fails if CMake version doesn't match the version
|
|
|
|
# in upstream's CI). Also exluding verify-export and cmake_format-doc-verify-README.rst
|
|
|
|
# which seem specific to how upstream manages their Git repo.
|
2020-01-24 13:58:30 +01:00
|
|
|
}
|
|
|
|
|
2018-12-05 16:54:40 +01:00
|
|
|
package() {
|
|
|
|
cd "$srcdir/cmake_format-$pkgver"
|
|
|
|
python setup.py install --root="$pkgdir" --optimize=1
|
|
|
|
}
|