void-packages/srcpkgs/miller/template
2016-08-22 12:25:24 +02:00

26 lines
754 B
Bash

# Template file for 'miller'
pkgname=miller
version=4.5.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="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD-2"
homepage="http://johnkerl.org/miller/"
distfiles="https://github.com/johnkerl/${pkgname}/archive/v${version}.tar.gz"
checksum=af495bf3b1dab9b931d7161efb7bc1d823395e1e749652d56fcd3cb0e841ffc3
pre_configure() {
# Disable debugging and profiling versions, broken on musl.
echo 'noinst_PROGRAMS=' >> c/Makefile.am
autoreconf -fi
}
pre_build() {
make -C c/dsls lemon CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS -fPIC"
}
post_install() {
vlicense LICENSE.txt
}