28 lines
772 B
Bash
28 lines
772 B
Bash
# Template file for 'tcc'
|
|
pkgname=tcc
|
|
version=0.9.26.20160111
|
|
revision=1
|
|
_gitrev=f75f89fc8f2116c4cfe35022c19ed854e6a23b84
|
|
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=c3b4b8c65d32870c2c31e779a8d7a28653e04d3365b461372bcb6b4f7710b4b1
|
|
|
|
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}
|
|
}
|