pkgname=editorconfig-core-c pkgver=0.12.6 pkgrel=1 pkgdesc='EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects.' arch=('x86_64') url='https://editorconfig.org/' license=('BSD') depends=('pcre2') makedepends=('cmake' 'doxygen') groups=('programming') source=("https://github.com/editorconfig/editorconfig-core-c/archive/v${pkgver}.tar.gz") sha256sums=('36052a5371731d915b53d9c7a24a11c4032585ccacb392ec9d58656eef4c0edf') build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build install -Dm644 ${pkgname}-${pkgver}/LICENSE -t ${pkgdir}/usr/share/licenses/${pkgname} }