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 +}