diff options
author | Liav A <liavalb@gmail.com> | 2022-10-16 20:32:44 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-17 01:08:01 +0200 |
commit | 711f64d3667522cfd59264ba1e15d9c4776683a7 (patch) | |
tree | b0197fce42d43cc2587eb2c51fff8c54ecf96c25 | |
parent | c58c93865969538e44d313473cf850787e8248df (diff) | |
download | serenity-711f64d3667522cfd59264ba1e15d9c4776683a7.zip |
Ports: Add tree utility port
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/tree/package.sh | 13 | ||||
-rw-r--r-- | Ports/tree/patches/0001-Allow-to-override-the-default-C-compiler.patch | 22 | ||||
-rw-r--r-- | Ports/tree/patches/ReadMe.md | 7 |
4 files changed, 43 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 2ab36fac32..5b10d88b8b 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 0000000000..92a25c6f59 --- /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 0000000000..df15d858fa --- /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 <liavalb@gmail.com> +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 0000000000..b49d4ca03e --- /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 + + |