From 853cebdbccc8bf6f2d2882fa11b72caec29d2a6d Mon Sep 17 00:00:00 2001 From: tibequadorian Date: Wed, 8 Apr 2020 10:33:47 +0200 Subject: [PATCH] New package: gcc4ti-0.96b11 --- srcpkgs/gcc4ti/INSTALL.msg | 4 ++++ srcpkgs/gcc4ti/template | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/gcc4ti/INSTALL.msg create mode 100644 srcpkgs/gcc4ti/template diff --git a/srcpkgs/gcc4ti/INSTALL.msg b/srcpkgs/gcc4ti/INSTALL.msg new file mode 100644 index 00000000000..943780086ba --- /dev/null +++ b/srcpkgs/gcc4ti/INSTALL.msg @@ -0,0 +1,4 @@ + +Make sure you set $TIGCC to /opt/gcc4ti and append $TIGCC/bin to your $PATH +before using GCC4TI + diff --git a/srcpkgs/gcc4ti/template b/srcpkgs/gcc4ti/template new file mode 100644 index 00000000000..0a153a3e19a --- /dev/null +++ b/srcpkgs/gcc4ti/template @@ -0,0 +1,29 @@ +# Template file for 'gcc4ti' +pkgname=gcc4ti +version=0.96b11 +revision=1 +_commit=8861b73d548cd1715afb375ba57b1e29da43599b +wrksrc=gcc4ti-${_commit} +hostmakedepends="tar patch" +short_desc="Complete and mature GPL SDK for the TI-68k calculators" +maintainer="tibequadorian " +license="GPL-2.0-only" +homepage="https://github.com/debrouxl/gcc4ti" +distfiles="https://github.com/debrouxl/gcc4ti/archive/${_commit}.tar.gz" +checksum=b65eca299c188a1f07887128c4b247363734f1fc44add153c439c07632bfbca1 +nocross=yes + +do_install() { + cd trunk/tigcc-linux/scripts + ./updatesrc + export PREFIX_GCC4TI=$DESTDIR/opt/gcc4ti + export PATH=$PATH:$PREFIX_GCC4TI/bin + export CFLAGS="-Os -s -fno-exceptions -fomit-frame-pointer" + export GCC4TIHOST=$XBPS_CROSS_TRIPLET + cd ../gcc4ti-0.96b11/scripts + ./Install_step_1 + ./Install_step_2 + ./Install_step_3 + ./Install_step_4 + ./Install_step_5 +}