pkgname=tcc-chicken-git pkgver=0.9.27.r721.g82b0af7 pkgrel=1 pkgdesc='Tiny C Compiler' arch=('x86_64' 'i686') url='https://bellard.org/tcc/' license=('LGPL2.1') makedepends=('texi2html' 'git') provides=('tcc') conflicts=('tcc') options=('staticlibs') source=('git+https://repo.or.cz/tinycc.git' 'https://bugs.call-cc.org/raw-attachment/ticket/1681/0001-Increase-VSTACK_SIZE-to-handle-very-big-expressions.patch') md5sums=('SKIP' '24d56c2bdf0b9dcfcfb82a7bfb4de191') pkgver() { cd tinycc git describe --tags --long | sed 's/^release_//; s/_/./g; s/-/.r/; s/-/./' } prepare() { cd tinycc patch -p1 < ../0001-Increase-VSTACK_SIZE-to-handle-very-big-expressions.patch } build() { cd tinycc ./configure --prefix=/usr make } check() { cd tinycc make -j1 test } package() { make -C tinycc DESTDIR="$pkgdir" install }