vp-build/srcpkgs/tcc/template

30 lines
872 B
Bash

# Template file for 'tcc'
pkgname=tcc
version=0.9.27.20191027.1
revision=1
_gitrev=a4997bf3d952f904bce824ee3e8f3e12e8524071
wrksrc=tinycc-${_gitrev:0:7}
build_style=configure
configure_args="--prefix=/usr --libdir=\${prefix}/lib$XBPS_TARGET_WORDSIZE"
make_check_target="test"
hostmakedepends="perl"
short_desc="Tiny C Compiler"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1"
homepage="http://bellard.org/tcc/"
distfiles="http://repo.or.cz/tinycc.git/snapshot/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=24b34f5ff46694cc3da7db5df6f6180e8cba908e6e3691577f01dd17f4f1a6b4
nopie=yes
nocross=yes
case "$XBPS_TARGET_MACHINE" in
ppc*) broken="ftbfs";;
*-musl) configure_args+=" --config-musl";;
esac
do_build() {
# Can't use (many of) our CFLAGS or LDFLAGS
# because TCC is bootstrapped with the same flags
make CFLAGS= LDFLAGS= ${makejobs}
}