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-01-23 18:15:40 +01:00
|
|
|
pkgver=0.6.7
|
2020-01-24 13:58:30 +01:00
|
|
|
pkgrel=2
|
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-24 15:46:05 +01:00
|
|
|
depends=('python-setuptools' 'python-yaml>=5.3' 'python-jinja>=2.10.3' 'python-six>=1.14.0')
|
2020-01-24 13:58:30 +01:00
|
|
|
checkdepends=('cmake' 'python-pgpy')
|
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-01-23 18:15:40 +01:00
|
|
|
sha512sums=('1d1a637ea5e91540030c3b28606bc211d8d6951d96d84b0318c5a9261be06dd81c929827eae3090aa75004be70d059fe6f5b580854ea093c1aebe19b087bb734')
|
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"
|
|
|
|
ctest --exclude-regex cmake_format-command-db-test
|
|
|
|
}
|
|
|
|
|
2018-12-05 16:54:40 +01:00
|
|
|
package() {
|
|
|
|
cd "$srcdir/cmake_format-$pkgver"
|
|
|
|
python setup.py install --root="$pkgdir" --optimize=1
|
|
|
|
}
|