diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-07-08 03:44:22 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-13 21:22:52 +0100 |
commit | eaee7e9d5b19d873210c8f2a9ad3549dc0bd15e1 (patch) | |
tree | e22d64b3413d209b73b735428cbbcb5b12cf1401 /Ports | |
parent | cff2d631daf16522bb83c60706b4dd8faf9e59d1 (diff) | |
download | serenity-eaee7e9d5b19d873210c8f2a9ad3549dc0bd15e1.zip |
Ports/cfunge: Remove workdir weirdness
Diffstat (limited to 'Ports')
-rwxr-xr-x | Ports/cfunge/package.sh | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/Ports/cfunge/package.sh b/Ports/cfunge/package.sh index 104f5ad181..e3b29a134e 100755 --- a/Ports/cfunge/package.sh +++ b/Ports/cfunge/package.sh @@ -1,31 +1,19 @@ #!/usr/bin/env -S bash ../.port_include.sh -port=cfunge -version=2bc4fb27ade2a816ca9a90a6d9f6958111123fa9 -workdir=cfunge-${version}/build -useconfigure=true +port='cfunge' +version='2bc4fb27ade2a816ca9a90a6d9f6958111123fa9' +useconfigure='true' files="https://codeload.github.com/VorpalBlade/cfunge/zip/${version} cfunge.zip 364994a890ed1083684956db576a2a5cfb94b3117bae868910d6a75111033f55" -auth_type=sha256 +auth_type='sha256' -mkdir -p cfunge-${version}/build - -patch_internal() { - # patch if it was not yet patched (applying patches multiple times doesn't work!) - if [ -z "${IN_SERENITY_PORT_DEV:-}" ] && [ -d patches ]; then - for filepath in patches/*.patch; do - filename=$(basename $filepath) - if [ ! -f "$workdir"/.${filename}_applied ]; then - run patch -d .. -p"$patchlevel" < "$filepath" - run touch .${filename}_applied - fi - done - fi +configure() { + run cmake -B build "${configopts[@]}" } -configure() { - run cmake "${configopts[@]}" .. +build() { + run make -C build "${makeopts[@]}" } install() { - run cp cfunge "${SERENITY_INSTALL_ROOT}/bin" + run cp build/cfunge "${SERENITY_INSTALL_ROOT}/bin" } |