mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Ports/cfunge: Remove workdir weirdness
This commit is contained in:
parent
cff2d631da
commit
eaee7e9d5b
Notes:
sideshowbarker
2024-07-17 09:00:13 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/eaee7e9d5b Pull-request: https://github.com/SerenityOS/serenity/pull/14542 Reviewed-by: https://github.com/BertalanD Reviewed-by: https://github.com/linusg ✅
1 changed files with 10 additions and 22 deletions
|
@ -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
|
||||
|
||||
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
|
||||
}
|
||||
auth_type='sha256'
|
||||
|
||||
configure() {
|
||||
run cmake "${configopts[@]}" ..
|
||||
run cmake -B build "${configopts[@]}"
|
||||
}
|
||||
|
||||
build() {
|
||||
run make -C build "${makeopts[@]}"
|
||||
}
|
||||
|
||||
install() {
|
||||
run cp cfunge "${SERENITY_INSTALL_ROOT}/bin"
|
||||
run cp build/cfunge "${SERENITY_INSTALL_ROOT}/bin"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue