void-packages/srcpkgs/txr/template
2019-02-09 01:23:47 -02:00

34 lines
814 B
Bash

# Template file for 'txr'
pkgname=txr
version=209
revision=1
build_style=configure
make_check_target=tests
hostmakedepends="bison flex"
short_desc="Programming language for convenient data munging"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
license="BSD-2-Clause"
homepage="http://www.nongnu.org/txr/"
distfiles="http://www.kylheku.com/cgit/txr/snapshot/${pkgname}-${version}.tar.bz2"
checksum=b455f3b128124e019d41173dae0846def20bace123ce49b262033e5fe63243bc
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" txr"
fi
do_configure() {
./configure --prefix=/usr --ccname="${CC}" \
--platform-cflags="${CFLAGS}" \
--platform-ldflags="${LDFLAGS}"
if [ "$CROSS_BUILD" ]; then
sed -i 's#^TXR :=.*#TXR = /usr/bin/txr#' Makefile
fi
}
pre_check() {
rm -rf tests/017
}
post_install() {
vlicense LICENSE
}