void-packages/srcpkgs/editorconfig/template

29 lines
767 B
Bash

# Template file for 'editorconfig'
pkgname=editorconfig
version=0.12.2
revision=1
wrksrc=editorconfig-core-c-${version}
build_style=cmake
makedepends="pcre-devel"
short_desc="EditorConfig core library written in C"
maintainer="Daniel Santana <daniel@santana.tech>"
license="BSD-2-Clause"
homepage="http://editorconfig.org/"
distfiles="https://github.com/editorconfig/editorconfig-core-c/archive/v${version}.tar.gz"
checksum=8a63ae63d3a2f2a202acbd94a6cbe3fa4450c2658e33e922683af33c48a9115d
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/pkgconfig
vmove usr/lib/*.so
}
}