aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tcc
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tcc')
-rw-r--r--testing/tcc/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/tcc/APKBUILD b/testing/tcc/APKBUILD
new file mode 100644
index 0000000000..9b2bea3280
--- /dev/null
+++ b/testing/tcc/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Hinata Yanagi <hinasssan@gmail.com>
+# Maintainer: Hinata Yanagi <hinasssan@gmail.com>
+pkgname=tcc
+pkgver=2017.10.19
+_commit=fc0188ffbcf29f856caedee8cef07d88be01e439
+pkgrel=0
+pkgdesc="Tiny C Compiler"
+url="http://repo.or.cz/tinycc.git"
+arch="all"
+license="LGPL2.1"
+makedepends="texinfo"
+source="$pkgname-$pkgver.tar.gz::http://repo.or.cz/tinycc.git/snapshot/$_commit.tar.gz"
+subpackages="$pkgname-doc"
+builddir="$srcdir/tinycc-$(echo "$_commit" | cut -c 0-7)"
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --config-musl
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+
+ mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
+ install -m644 Changelog CodingStyle README TODO \
+ "$pkgdir"/usr/share/doc/$pkgname/
+}
+
+sha512sums="2a32ec62fce539fb1168a21bd542aa370c7f6a9c7bc490bd9f86bb46b745a3db816c173f739e891631ec0b0ccbd89358226f7d5767ccbc3d7634890f83fbfa68 tcc-2017.10.19.tar.gz"