void-packages/srcpkgs/txr/template
2021-10-05 20:55:04 +00:00

38 lines
1 KiB
Bash

# Template file for 'txr'
pkgname=txr
version=270
revision=1
archs="x86_64* i686* aarch64* arm* ppc64* mips*"
build_style=configure
configure_args="--prefix=/usr"
make_check_target=tests
makedepends="libffi-devel"
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/"
changelog="http://www.kylheku.com/cgit/txr/tree/RELNOTES"
distfiles="http://www.kylheku.com/cgit/txr/snapshot/${pkgname}-${version}.tar.bz2"
checksum=6e0fe840ee91430888a08db8ef7739b1884fa43e8b2b5e173e6ae3eda3150291
nopie=yes
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" txr"
fi
pre_configure() {
if [ "$CROSS_BUILD" ]; then
vsed -i Makefile -e 's#^TXR :=.*#TXR = /usr/bin/txr#'
fi
}
pre_check() {
# UDP server/client test for IPv6 fails in github CI
vsed -i -e 's/,\*maybe-ipv6//' tests/014/dgram-stream.tl
}
post_install() {
vlicense LICENSE
vmkdir usr/share/vim/vimfiles/syntax
vcopy *.vim usr/share/vim/vimfiles/syntax/
}