38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
/*
|
|
* pkgconf — pkg-config implementation.
|
|
*
|
|
* The dependency-discovery tool: virtually every autoconf configure
|
|
* script and meson build queries *.pc files through it. Installs the
|
|
* canonical `pkg-config` name as a symlink (distro convention).
|
|
*
|
|
* Builds with only a C compiler and make; no external deps.
|
|
*/
|
|
package "pkgconf" {
|
|
const version = "3.0.5"
|
|
const source = "https://distfiles.ariadne.space/pkgconf/pkgconf-${version}.tar.gz"
|
|
sha256 = "d0d2ebdb3c7bfa3ae6e879d80b60dfe1dd482cce9f8be8fd8651149d396a4c49"
|
|
license = "ISC"
|
|
|
|
provides = ["pkg-config", "pkgconf"]
|
|
|
|
depends = [
|
|
{ name = "make" },
|
|
]
|
|
|
|
prepare {
|
|
curl -L -O ${source}
|
|
echo "d0d2ebdb3c7bfa3ae6e879d80b60dfe1dd482cce9f8be8fd8651149d396a4c49 pkgconf-${version}.tar.gz" | sha256sum -c -
|
|
tar xf pkgconf-${version}.tar.gz --strip-components=1
|
|
}
|
|
|
|
build {
|
|
./configure --prefix=${prefix}
|
|
make -j${jobs}
|
|
}
|
|
|
|
install {
|
|
make DESTDIR=${destdir} install
|
|
ln -sf pkgconf ${destdir}/usr/bin/pkg-config
|
|
}
|
|
}
|