summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorLarkin Nickle <me@larbob.org>2021-03-31 17:19:00 -0400
committerAndreas Kling <kling@serenityos.org>2021-04-05 18:25:46 +0200
commit1333fa7cf70dad1c8591ec06ed7cb71047700a2d (patch)
tree194079496a4b1a579adba5fb1a5c2d5789592b45 /Ports
parent1c57bf9094f950a5494fc70977f07ec0bf384eab (diff)
downloadserenity-1333fa7cf70dad1c8591ec06ed7cb71047700a2d.zip
Ports: Add carl
Diffstat (limited to 'Ports')
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/carl/package.sh14
2 files changed, 15 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index df83b0497f..ab8a611251 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -10,6 +10,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`bison`](bison/) | GNU Bison | 1.25 | https://www.gnu.org/software/bison/ |
| [`byacc`](byacc/) | Berkeley Yacc | 20191125 | https://invisible-island.net/byacc/byacc.html |
| [`bzip2`](bzip2/) | bzip2 | 1.0.8 | https://sourceware.org/bzip2/ |
+| [`carl`](carl/) | Crypto Ancienne Resource Loader | 1.5 | https://github.com/classilla/cryanc |
| [`c-ray`](c-ray/) | C-Ray | | https://github.com/vkoskiv/c-ray |
| [`chester`](chester/) | Chester Gameboy Emulator | | https://github.com/veikkos/chester |
| [`cmake`](cmake/) | CMake | 3.19.4 | https://cmake.org/ |
diff --git a/Ports/carl/package.sh b/Ports/carl/package.sh
new file mode 100755
index 0000000000..b3daa57781
--- /dev/null
+++ b/Ports/carl/package.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=carl
+version=1.5
+workdir=cryanc-"${version}"
+files="https://github.com/classilla/cryanc/archive/refs/tags/${version}.tar.gz cryanc-${version}.tar.gz f2cae13addf4ed7cb7af3d06069cf082"
+
+build() {
+ run $CC -O3 carl.c -o carl
+}
+
+install() {
+ run mkdir -p "${SERENITY_BUILD_DIR}/Root/usr/local"
+ run cp carl "${SERENITY_BUILD_DIR}/Root/usr/local/bin"
+}