void-packages/srcpkgs/txr/template

37 lines
896 B
Bash

# Template file for 'txr'
pkgname=txr
version=223
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=9bb9100c11ea958b42ed6c5e8b4c9cb95dc758a9b7a1d2e750eb3ddc22c20904
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
vmkdir usr/share/vim/vimfiles/syntax
vcopy *.vim usr/share/vim/vimfiles/syntax/
}