Skip to content

Commit

Permalink
gcc-default: add gcc-14
Browse files Browse the repository at this point in the history
  • Loading branch information
termux-pacman-bot committed May 26, 2024
1 parent 383298e commit 08b3ede
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tur/gcc-default/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ TERMUX_PKG_HOMEPAGE=https://github.com/termux-user-repository/tur
TERMUX_PKG_DESCRIPTION="Use GNU Compiler Collections as default compiler suit"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.2
TERMUX_PKG_VERSION=0.3
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_DEPENDS="gcc-default-11"
TERMUX_PKG_PLATFORM_INDEPENDENT=true

termux_step_make_install() {
mkdir -p $TERMUX_PREFIX/share/$TERMUX_PKG_NAME
touch $TERMUX_PREFIX/share/$TERMUX_PKG_NAME/.placeholder{,-{9,10,11,12,13}}
touch $TERMUX_PREFIX/share/$TERMUX_PKG_NAME/.placeholder{,-{9,10,11,12,13,14}}
cp -f $TERMUX_PKG_BUILDER_DIR/LICENSE $TERMUX_PKG_SRCDIR
}
4 changes: 2 additions & 2 deletions tur/gcc-default/gcc-default-10.subpackage.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
TERMUX_SUBPKG_DESCRIPTION="Use GNU Compiler Collections as default compiler suit (Version 10)"
TERMUX_SUBPKG_DEPEND_ON_PARENT=no
TERMUX_SUBPKG_DEPENDS="gcc-10"
TERMUX_SUBPKG_BREAKS="gcc-default-9, gcc-default-11, gcc-default-12, gcc-default-13"
TERMUX_SUBPKG_CONFLICTS="gcc-default-9, gcc-default-11, gcc-default-12, gcc-default-13"
TERMUX_SUBPKG_BREAKS="gcc-default-9, gcc-default-11, gcc-default-12, gcc-default-13, gcc-default-14"
TERMUX_SUBPKG_CONFLICTS="gcc-default-9, gcc-default-11, gcc-default-12, gcc-default-13, gcc-default-14"
TERMUX_SUBPKG_INCLUDE="share/$TERMUX_PKG_NAME/.placeholder-10"

termux_step_create_subpkg_debscripts() {
Expand Down
4 changes: 2 additions & 2 deletions tur/gcc-default/gcc-default-11.subpackage.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
TERMUX_SUBPKG_DESCRIPTION="Use GNU Compiler Collections as default compiler suit (Version 11)"
TERMUX_SUBPKG_DEPEND_ON_PARENT=no
TERMUX_SUBPKG_DEPENDS="gcc-11"
TERMUX_SUBPKG_BREAKS="gcc-default-9, gcc-default-10, gcc-default-12, gcc-default-13"
TERMUX_SUBPKG_CONFLICTS="gcc-default-9, gcc-default-10, gcc-default-12, gcc-default-13"
TERMUX_SUBPKG_BREAKS="gcc-default-9, gcc-default-10, gcc-default-12, gcc-default-13, gcc-default-14"
TERMUX_SUBPKG_CONFLICTS="gcc-default-9, gcc-default-10, gcc-default-12, gcc-default-13, gcc-default-14"
TERMUX_SUBPKG_INCLUDE="share/$TERMUX_PKG_NAME/.placeholder-11"

termux_step_create_subpkg_debscripts() {
Expand Down
4 changes: 2 additions & 2 deletions tur/gcc-default/gcc-default-12.subpackage.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
TERMUX_SUBPKG_DESCRIPTION="Use GNU Compiler Collections as default compiler suit (Version 12)"
TERMUX_SUBPKG_DEPEND_ON_PARENT=no
TERMUX_SUBPKG_DEPENDS="gcc-12"
TERMUX_SUBPKG_BREAKS="gcc-default-9, gcc-default-10, gcc-default-11, gcc-default-13"
TERMUX_SUBPKG_CONFLICTS="gcc-default-9, gcc-default-10, gcc-default-11, gcc-default-13"
TERMUX_SUBPKG_BREAKS="gcc-default-9, gcc-default-10, gcc-default-11, gcc-default-13, gcc-default-14"
TERMUX_SUBPKG_CONFLICTS="gcc-default-9, gcc-default-10, gcc-default-11, gcc-default-13, gcc-default-14"
TERMUX_SUBPKG_INCLUDE="share/$TERMUX_PKG_NAME/.placeholder-12"

termux_step_create_subpkg_debscripts() {
Expand Down
4 changes: 2 additions & 2 deletions tur/gcc-default/gcc-default-13.subpackage.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
TERMUX_SUBPKG_DESCRIPTION="Use GNU Compiler Collections as default compiler suit (Version 13)"
TERMUX_SUBPKG_DEPEND_ON_PARENT=no
TERMUX_SUBPKG_DEPENDS="gcc-13"
TERMUX_SUBPKG_BREAKS="gcc-default-9, gcc-default-10, gcc-default-11, gcc-default-12"
TERMUX_SUBPKG_CONFLICTS="gcc-default-9, gcc-default-10, gcc-default-11, gcc-default-12"
TERMUX_SUBPKG_BREAKS="gcc-default-9, gcc-default-10, gcc-default-11, gcc-default-12, gcc-default-14"
TERMUX_SUBPKG_CONFLICTS="gcc-default-9, gcc-default-10, gcc-default-11, gcc-default-12, gcc-default-14"
TERMUX_SUBPKG_INCLUDE="share/$TERMUX_PKG_NAME/.placeholder-13"

termux_step_create_subpkg_debscripts() {
Expand Down
17 changes: 17 additions & 0 deletions tur/gcc-default/gcc-default-14.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
TERMUX_SUBPKG_DESCRIPTION="Use GNU Compiler Collections as default compiler suit (Version 14)"
TERMUX_SUBPKG_DEPEND_ON_PARENT=no
TERMUX_SUBPKG_DEPENDS="gcc-14"
TERMUX_SUBPKG_BREAKS="gcc-default-9, gcc-default-10, gcc-default-11, gcc-default-12, gcc-default-13"
TERMUX_SUBPKG_CONFLICTS="gcc-default-9, gcc-default-10, gcc-default-11, gcc-default-12, gcc-default-13"
TERMUX_SUBPKG_INCLUDE="share/$TERMUX_PKG_NAME/.placeholder-13"

termux_step_create_subpkg_debscripts() {
local _GCC_DEFAULT_VERSION=14
echo "interest-noawait $TERMUX_PREFIX/bin/clang" >> ./triggers
for script_type in postinst prerm; do
sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|g" $TERMUX_PKG_BUILDER_DIR/$script_type.sh.in |
sed "s|@TERMUX_PKG_NAME@|$TERMUX_PKG_NAME|g" |
sed "s|@DEFAULT_GCC_VERSION@|$_GCC_DEFAULT_VERSION|g" > ./$script_type
chmod 0755 ./$script_type
done
}
4 changes: 2 additions & 2 deletions tur/gcc-default/gcc-default-9.subpackage.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
TERMUX_SUBPKG_DESCRIPTION="Use GNU Compiler Collections as default compiler suit (Version 9)"
TERMUX_SUBPKG_DEPEND_ON_PARENT=no
TERMUX_SUBPKG_DEPENDS="gcc-9"
TERMUX_SUBPKG_BREAKS="gcc-default-10, gcc-default-11, gcc-default-12, gcc-default-13"
TERMUX_SUBPKG_CONFLICTS="gcc-default-10, gcc-default-11, gcc-default-12, gcc-default-13"
TERMUX_SUBPKG_BREAKS="gcc-default-10, gcc-default-11, gcc-default-12, gcc-default-13, gcc-default-14"
TERMUX_SUBPKG_CONFLICTS="gcc-default-10, gcc-default-11, gcc-default-12, gcc-default-13, gcc-default-14"
TERMUX_SUBPKG_INCLUDE="share/$TERMUX_PKG_NAME/.placeholder-9"

termux_step_create_subpkg_debscripts() {
Expand Down

0 comments on commit 08b3ede

Please sign in to comment.