void-packages/srcpkgs/tcc/template
copyleftie 07ccdc169b tcc: update to 0.9.27.
Closes: #10125 [via git-merge-pr]
2017-12-28 15:31:14 +01:00

27 lines
763 B
Bash

# Template file for 'tcc'
pkgname=tcc
version=0.9.27
revision=1
_gitrev=d348a9a51d32cece842b7885d27a411436d7887b
wrksrc=tinycc-${_gitrev:0:7}
nopie=yes
build_style=gnu-configure
only_for_archs="i686 x86_64"
hostmakedepends="perl"
short_desc="The Tiny C Compiler"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://bellard.org/tcc/"
license="LGPL-2.1"
distfiles="http://repo.or.cz/tinycc.git/snapshot/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=1c3a4150b4aaab9751af2112e8bfd8a93fd1a9d36af048e996ebfc0fd1f07e48
pre_configure() {
# Replace lib64 with lib
sed -i configure -e "s;lib64;lib;g"
}
do_build() {
# Can't use (many of) our CFLAGS or LDFLAGS
# because TCC is bootstrapped with the same flags
make CFLAGS= LDFLAGS= ${makejobs}
}