1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:07:34 +00:00

Ports: Added The One True AWK

This commit is contained in:
Mattias Nilsson 2022-04-04 22:05:38 +02:00 committed by Brian Gianforcaro
parent 8a46794ff8
commit 45d73f8ef9
5 changed files with 53 additions and 0 deletions

17
Ports/awk/package.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=awk
version=20220122
useconfigure="false"
files="https://github.com/onetrueawk/awk/archive/refs/tags/${version}.tar.gz awk-${version}.tar.xz 720a06ff8dcc12686a5176e8a4c74b1295753df816e38468a6cf077562d54042"
auth_type=sha256
patchlevel=1
build() {
run make "${makeopts[@]}"
run mv a.out awk
}
install() {
run mkdir -p ${SERENITY_INSTALL_ROOT}/usr/local/bin/
run cp awk ${SERENITY_INSTALL_ROOT}/usr/local/bin/
}