mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 02:27:35 +00:00
Ports: Add p7zip
This commit is contained in:
parent
6093236424
commit
2dfd95767a
3 changed files with 70 additions and 0 deletions
30
Ports/p7zip/package.sh
Executable file
30
Ports/p7zip/package.sh
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
|
||||
port="p7zip"
|
||||
version="17.04"
|
||||
useconfigure=true
|
||||
auth_type=sha256
|
||||
files="https://github.com/jinfeihan57/p7zip/archive/refs/tags/v${version}.tar.gz p7zip-${version}.tar.gz ea029a2e21d2d6ad0a156f6679bd66836204aa78148a4c5e498fe682e77127ef"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_SOURCE_DIR}/Toolchain/CMake/CMakeToolchain.txt"
|
||||
workdir=$port-$version/CPP
|
||||
|
||||
post_fetch() {
|
||||
run_replace_in_file "s/\r//" 7zip/CMAKE/7za/CMakeLists.txt
|
||||
}
|
||||
|
||||
configure() {
|
||||
run cmake 7zip/CMAKE $configopts
|
||||
}
|
||||
|
||||
build() {
|
||||
run make $makeopts
|
||||
}
|
||||
|
||||
install() {
|
||||
run cp -r bin/Codecs $SERENITY_INSTALL_ROOT/usr/local/bin
|
||||
run cp bin/7z_ $SERENITY_INSTALL_ROOT/usr/local/bin
|
||||
run cp bin/7z.so $SERENITY_INSTALL_ROOT/usr/local/bin
|
||||
run cp bin/7za $SERENITY_INSTALL_ROOT/usr/local/bin
|
||||
run cp bin/7zCon.sfx $SERENITY_INSTALL_ROOT/usr/local/bin
|
||||
run cp bin/7zr $SERENITY_INSTALL_ROOT/usr/local/bin
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue