39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'txr'
|
|
pkgname=txr
|
|
version=243
|
|
revision=1
|
|
archs="x86_64* i686* aarch64* arm* ppc64* mips*"
|
|
build_style=configure
|
|
configure_args="--prefix=/usr"
|
|
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/"
|
|
changelog="http://www.kylheku.com/cgit/txr/tree/RELNOTES?id=${pkgname}-${version}"
|
|
distfiles="http://www.kylheku.com/cgit/txr/snapshot/${pkgname}-${version}.tar.bz2"
|
|
checksum=dcf5f478769f50f51797f44c56b49fb731f5114460eee78e12ad8619b86c62a3
|
|
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
|
|
}
|
|
|
|
post_configure() {
|
|
vsed -i config.make -e "\#^PLATFORM_CFLAGS#s#:=.*\$#:= ${CFLAGS}#"
|
|
vsed -i config.make -e "\#^PLATFORM_LDFLAGS#s#:=.*\$#:= ${LDFLAGS}#"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vmkdir usr/share/vim/vimfiles/syntax
|
|
vcopy *.vim usr/share/vim/vimfiles/syntax/
|
|
}
|