void-packages/srcpkgs/editorconfig/template

30 lines
830 B
Bash

# Template file for 'editorconfig'
pkgname=editorconfig
version=0.12.4
revision=1
build_style=cmake
makedepends="pcre2-devel"
short_desc="EditorConfig core library written in C"
maintainer="Daniel Santana <daniel@santana.tech>"
license="BSD-2-Clause"
homepage="https://editorconfig.org/"
changelog="https://github.com/editorconfig/editorconfig-core-c/releases"
distfiles="https://github.com/editorconfig/editorconfig-core-c/archive/v${version}.tar.gz"
checksum=c2671595f1793b498cdf50b9dc03d632cc724891de7909f2ea78588fbffba289
post_install() {
vlicense LICENSE
}
editorconfig-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
}
}