40 lines
976 B
Bash
40 lines
976 B
Bash
# Template file for 'txr'
|
|
pkgname=txr
|
|
version=231
|
|
revision=1
|
|
archs="x86_64* i686* aarch64* arm* ppc64*"
|
|
build_style=configure
|
|
make_check_target=tests
|
|
hostmakedepends="bison flex"
|
|
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/"
|
|
distfiles="http://www.kylheku.com/cgit/txr/snapshot/${pkgname}-${version}.tar.bz2"
|
|
checksum=8c8a187703fe3de9d1a8c46511e381e84a341990e935b64454b9ba4fd0a28f55
|
|
nopie=yes
|
|
|
|
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/
|
|
}
|