aports/testing/tcc/APKBUILD
Rob Blanckaert 22e3efccb3
testing/tcc: Update to follow mob development on git
TCC stoped cutting official release four years ago, however development
is still active on the mob branch on the official git repository.

A somewhat new addition is support for riscv64 as a target, so following
git will allow the package to be built for riscv64.
2022-03-27 07:46:26 +02:00

39 lines
1.0 KiB
Plaintext

# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Hinata Yanagi <hinasssan@gmail.com>
# Maintainer: Hinata Yanagi <hinasssan@gmail.com>
pkgname=tcc
pkgver=0.9.27_git20220323
_commit="750f0a3e3f11c1a442f00f017c2548a8f63e0b9f"
pkgrel=0
pkgdesc="Tiny C Compiler"
url="https://repo.or.cz/w/tinycc.git"
arch="all !ppc64le !s390x"
license="LGPL-2.1-or-later"
makedepends="texinfo"
options="!check" # test suite currently fails on the server
source="$pkgname-$_commit.tar.gz::https://repo.or.cz/tinycc.git/snapshot/$_commit.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir/tinycc-${_commit:0:7}"
build() {
./configure \
--prefix=/usr \
--config-musl
make
}
check() {
make test
}
package() {
make DESTDIR="$pkgdir" install
install -Dm644 Changelog CodingStyle README TODO \
-t "$pkgdir"/usr/share/doc/$pkgname
}
sha512sums="
cad277e8643d2402e204290e42ecef559e8bc1259e0405ed7e1b4367f54702fd3167c10314ab81dcc9f6dd08852489053d2e7f662ddcfdd1f3c36549b9c796f6 tcc-750f0a3e3f11c1a442f00f017c2548a8f63e0b9f.tar.gz
"