serenity/Ports/file/package.sh

24 lines
502 B
Bash
Raw Normal View History

2022-10-15 14:51:03 +00:00
#!/usr/bin/env -S bash ../.port_include.sh
port='file'
version='5.45'
2022-10-15 14:51:03 +00:00
useconfigure='true'
use_fresh_config_sub='true'
2023-07-10 11:10:29 +00:00
files=(
"http://ftp.astron.com/pub/file/file-${version}.tar.gz#fc97f51029bb0e2c9f4e3bffefdaf678f0e039ee872b9de5c002a6d09c784d82"
2023-07-10 11:10:29 +00:00
)
function pre_configure() {
host_env
mkdir -p "host-build"
(
cd host-build
"../${workdir}/configure"
make
)
}
function build() {
export PATH="${PORT_BUILD_DIR}/host-build/src/.libs/:$PATH"
run make
}