# Contributor: # Maintainer: Paul Morgan pkgname=editorconfig _pkgname=$pkgname-core-c pkgver=0.12.2 pkgrel=0 pkgdesc="EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)" url="https://github.com/editorconfig/editorconfig-core-c" arch="all" license="BSD-2-Clause" makedepends="cmake doxygen pcre-dev" subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/editorconfig/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DINI_ALLOW_MULTILINE=1 make } package() { cd "$builddir" make install DESTDIR="$pkgdir" # Remove symlink to editorconfig-$pkgver. rm -f "$pkgdir/usr/bin/$pkgname" mv -f "$pkgdir/usr/bin/$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname" } sha512sums="6ab3e4f7f95c83c0781064ca15bb70394bb947f9d4cd1348224f02e25c65021d14439b913775d7cfafb93476158799c34438fa548adf3c7ec6dbfd6f1052a046 editorconfig-0.12.2.tar.gz"