void-packages/srcpkgs/miller/template
2017-06-14 13:33:53 +02:00

27 lines
807 B
Bash

# Template file for 'miller'
pkgname=miller
version=5.2.0
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool flex asciidoc"
short_desc="Tool like sed/awk/cut/join/sort for name-indexed data such as CSV"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="2-clause-BSD"
homepage="http://johnkerl.org/miller/"
distfiles="https://github.com/johnkerl/${pkgname}/archive/v${version}.tar.gz"
_changelog="https://github.com/johnkerl/miller/releases"
checksum=e773d2aee08d9d864d1bfa21bbfe94d4abbe1fce51dea68979ac55936b22c6b4
pre_configure() {
# Disable debugging and profiling versions, broken on musl.
echo 'noinst_PROGRAMS=' >> c/Makefile.am
autoreconf -fi
}
pre_build() {
make -C c/parsing lemon CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS -fPIC"
}
post_install() {
vlicense LICENSE.txt
}