aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tcc
diff options
context:
space:
mode:
authorHinata Yanagi <hinasssan@gmail.com>2017-10-26 17:42:52 +0000
committerSören Tempel <soeren+git@soeren-tempel.net>2017-10-28 11:54:06 +0200
commit5b82e192d87c72b9ff37187fa216d785938a1476 (patch)
tree28ff14b51f2b8c98d250c3ecba2ccbc7795ce8a1 /testing/tcc
parentd60bf515aff21d0ef3eb0cfa45d92d5ee725e755 (diff)
downloadaports-5b82e192d87c72b9ff37187fa216d785938a1476.tar.bz2
aports-5b82e192d87c72b9ff37187fa216d785938a1476.tar.xz
testing/tcc: new aport
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"