1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:47:46 +00:00

Ports: Add tree utility port

This commit is contained in:
Liav A 2022-10-16 20:32:44 +03:00 committed by Linus Groh
parent c58c938659
commit 711f64d366
4 changed files with 43 additions and 0 deletions

13
Ports/tree/package.sh Executable file
View file

@ -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"
}

View file

@ -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

View file

@ -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