diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 2ab36fac32a..5b10d88b8b7 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -250,6 +250,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`tinycc`](tinycc/) | Tiny C Compiler (TinyCC) | dev | https://github.com/TinyCC/tinycc | | [`tinyscheme`](tinyscheme/) | TinyScheme Interpreter | 1.42 | https://sourceforge.net/projects/tinyscheme/ | | [`tr`](tr/) | tr (OpenBSD) | 6.7 | https://github.com/ibara/libpuffy | +| [`tree`](tree/) | tree | 2.0.4 | https://github.com/Old-Man-Programmer/tree | | [`tuxracer`](tuxracer/) | Tux Racer | 0.61 | http://tuxracer.sourceforge.net/ | | [`vim`](vim/) | Vim | 8.2.4554 | https://www.vim.org/ | | [`vitetris`](vitetris/) | vitetris | 0.59.1 | https://github.com/vicgeralds/vitetris | diff --git a/Ports/tree/package.sh b/Ports/tree/package.sh new file mode 100755 index 00000000000..92a25c6f590 --- /dev/null +++ b/Ports/tree/package.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='tree' +version='2.0.4' +files="https://github.com/Old-Man-Programmer/tree/archive/refs/tags/${version}.tar.gz tree-${version}.tar.gz 3ebeaf77a3b3829bcf665329e9d0f3624079c2c4cb4ef14cf6d7129a1a208b59" +auth_type='sha256' + +build() { + run make CC="${CC}" all +} + +install() { + run make install PREFIX="${SERENITY_INSTALL_ROOT}/usr/local" +} diff --git a/Ports/tree/patches/0001-Allow-to-override-the-default-C-compiler.patch b/Ports/tree/patches/0001-Allow-to-override-the-default-C-compiler.patch new file mode 100644 index 00000000000..df15d858faa --- /dev/null +++ b/Ports/tree/patches/0001-Allow-to-override-the-default-C-compiler.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Liav A +Date: Sun, 16 Oct 2022 20:27:51 +0300 +Subject: [PATCH] Allow to override the default C compiler + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 4ca97b8a130800f56111578dc1be1f140524985e..160ab6a42c2db3d2baa2c077813b027927b81ba5 100644 +--- a/Makefile ++++ b/Makefile +@@ -18,7 +18,7 @@ + + PREFIX=/usr/local + +-CC=gcc ++CC= + INSTALL=install + + VERSION=2.0.4 diff --git a/Ports/tree/patches/ReadMe.md b/Ports/tree/patches/ReadMe.md new file mode 100644 index 00000000000..b49d4ca03e3 --- /dev/null +++ b/Ports/tree/patches/ReadMe.md @@ -0,0 +1,7 @@ +# Patches for tree on SerenityOS + +## `0001-Allow-to-override-the-default-C-compiler.patch` + +Allow to override the default C compiler + +