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

39 lines
1.2 KiB
Plaintext

/*
* libbsd — BSD compatibility functions (strlcpy, getpass, ...), needed
* by links (its configure hard-links -lbsd when detected).
*
* Upstream gitlab.io is Cloudflare-challenged (unfetchable by curl), so
* the source comes from Debian's pool mirror — byte-identical to
* upstream. .tar.xz needs xz on the build system (base toolchain).
*/
package "libbsd" {
const version = "0.12.2"
const source = "https://deb.debian.org/debian/pool/main/libb/libbsd/libbsd_0.12.2.orig.tar.xz"
sha256 = "b88cc9163d0c652aaf39a99991d974ddba1c3a9711db8f1b5838af2a14731014"
license = "BSD-3-Clause"
provides = ["libbsd.a"]
depends = [
{ name = "make" },
]
prepare {
curl -L -o libbsd-${version}.tar.xz ${source}
echo "b88cc9163d0c652aaf39a99991d974ddba1c3a9711db8f1b5838af2a14731014 libbsd-${version}.tar.xz" | sha256sum -c -
tar xf libbsd-${version}.tar.xz --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
}
}