# Maintainer: Chocobo1 pkgname=editorconfig-core-c-git pkgver=0.12.6.r4.gaa6b3ed pkgrel=1 pkgdesc="EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)" arch=('i686' 'x86_64') url="https://github.com/editorconfig/editorconfig-core-c" license=('BSD') depends=('glibc' 'pcre2') makedepends=('git' 'cmake') provides=("editorconfig-core-c=$pkgver") conflicts=('editorconfig-core-c') source=('git+https://github.com/editorconfig/editorconfig-core-c.git') sha256sums=('SKIP') pkgver() { cd "editorconfig-core-c" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "editorconfig-core-c" cmake \ -B "_build" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_INSTALL_LIBDIR="lib" \ -DINSTALL_HTML_DOC=ON \ ./ make -C "_build" } package() { cd "editorconfig-core-c" make -C "_build" DESTDIR="$pkgdir" install install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/editorconfig-core-c" }