summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-10-05 10:39:47 +0300
committerAndrew Kaster <andrewdkaster@gmail.com>2022-10-09 09:51:57 -0600
commit9cbae2b6073ce7f4c5331dd94c9e813a9dab3a0a (patch)
tree9eb2185ecfd384fca9011bc42eab0bd97fd951bf
parente5a353902dd9545bd97f286afb935279356ca298 (diff)
downloadserenity-9cbae2b6073ce7f4c5331dd94c9e813a9dab3a0a.zip
Ports: Add dtc utility suite
This includes the known dtc utility as well with other bundled utilities with it.
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/dtc/package.sh15
2 files changed, 16 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index a566a63596..f602098020 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -45,6 +45,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`drascula`](drascula/) | Dráscula: The Vampire Strikes Back | 1.0 | https://www.scummvm.org/games/#games-drascula |
| [`dreamweb`](dreamweb/) | DreamWeb | 1.1 | https://www.scummvm.org/games/#games-dreamweb |
| [`dropbear`](dropbear/) | Dropbear SSH | 2022.82 | https://dropbear.nl/mirror/dropbear.html |
+| [`dtc`](dtc/) | Device Tree Compiler | 98a0700 | https://github.com/dgibson/dtc |
| [`dungeonrush`](dungeonrush/) | DungeonRush | 1.1-beta | https://github.com/Rapiz1/DungeonRush |
| [`e2fsprogs`](e2fsprogs/) | e2fsprogs | 1.46.5 | http://e2fsprogs.sourceforge.net/ |
| [`ed`](ed/) | GNU ed | 1.18 | https://www.gnu.org/software/ed/ |
diff --git a/Ports/dtc/package.sh b/Ports/dtc/package.sh
new file mode 100755
index 0000000000..c761485ade
--- /dev/null
+++ b/Ports/dtc/package.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port='dtc'
+version='98a07006c48dc0bc3f42b3b3ce75b7f03e87e724'
+auth_type='sha256'
+files="https://github.com/dgibson/dtc/archive/${version}.tar.gz dtc-${version}.tar.gz 34a06bc0b3d0a3f411d09941946e0d094e7be81e437bdf6a7e30fa9c10de4bf4"
+depends=('bash')
+
+
+build() {
+ run make NO_PYTHON=1
+}
+
+install() {
+ run make PREFIX="${DESTDIR}" BINDIR="${DESTDIR}/usr/bin" install
+}