2021-01-22 19:44:05 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2020-01-25 03:43:14 +03:00
|
|
|
port=bc
|
2022-04-01 02:49:54 +03:00
|
|
|
version=5.2.3
|
2020-02-04 03:11:35 +03:00
|
|
|
files="https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz bc-${version}.tar.xz
|
|
|
|
https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz.sig bc-${version}.tar.xz.sig"
|
2020-01-25 03:43:14 +03:00
|
|
|
useconfigure=true
|
|
|
|
configscript=configure.sh
|
2020-02-04 03:11:35 +03:00
|
|
|
auth_type="sig"
|
|
|
|
auth_import_key="E2A30324A4465A4D5882692EC08038BDF280D33E"
|
2021-09-27 01:16:18 +03:00
|
|
|
auth_opts=("bc-${version}.tar.xz.sig")
|
2021-10-25 15:57:34 +03:00
|
|
|
configopts=("--prefix=/usr/local" "--disable-nls")
|
2020-01-25 03:43:14 +03:00
|
|
|
|
2022-04-01 02:49:54 +03:00
|
|
|
export CFLAGS="-O3 -flto"
|
|
|
|
|
2020-01-25 03:43:14 +03:00
|
|
|
configure() {
|
2021-10-25 11:14:27 +03:00
|
|
|
run env HOSTCC=gcc ./"$configscript" "${configopts[@]}"
|
2020-01-25 03:43:14 +03:00
|
|
|
}
|