27 lines
768 B
Bash
27 lines
768 B
Bash
# Template file for 'miller'
|
|
pkgname=miller
|
|
version=2.3.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_pie=yes
|
|
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=36fbb443fdc979d31ede2410020a40d169d4a454c1284a36ccc7abbf96a42185
|
|
|
|
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
|
|
}
|