Files
2026-08-18 18:59:25 -04:00

36 lines
965 B
Plaintext

/*
* libffi — Foreign Function Interface (python ctypes, interpreters).
*
* Standard autotools static build.
*/
package "libffi" {
const version = "3.8.0"
const source = "https://github.com/libffi/libffi/releases/download/v${version}/libffi-${version}.tar.gz"
sha256 = "7da3e2d9a171eb0a038f592ecad3ff2bb2550f3496d87b3b29ad0cf4430c0db4"
license = "MIT"
provides = ["libffi.a"]
depends = [
{ name = "make" },
]
prepare {
curl -L -o libffi-${version}.tar.gz ${source}
echo "7da3e2d9a171eb0a038f592ecad3ff2bb2550f3496d87b3b29ad0cf4430c0db4 libffi-${version}.tar.gz" | sha256sum -c -
tar xf libffi-${version}.tar.gz --strip-components=1
}
build {
./configure --prefix=${prefix} --disable-shared
make -j${jobs}
}
install {
make DESTDIR=${destdir} install
find ${destdir} -name '*.la' -delete
find ${destdir} -name '*.la' -delete
}
}