44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'txr'
|
|
pkgname=txr
|
|
version=275
|
|
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="Orphaned <orphan@voidlinux.org>"
|
|
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=1e6ca44f2879178f4205ad70ee8fc757a4392ecc75424c5ed0904741d1b1541e
|
|
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() {
|
|
if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then
|
|
# IPv6 not supported in github CI
|
|
vsed -i -e 's/,\*maybe-ipv6//' tests/014/dgram-stream.tl
|
|
|
|
# Removing tests that fail when run as root
|
|
rm tests/019/load-search.tl
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vmkdir usr/share/vim/vimfiles/syntax
|
|
vcopy *.vim usr/share/vim/vimfiles/syntax/
|
|
}
|