43 lines
1.0 KiB
Python
43 lines
1.0 KiB
Python
import lib.cpp as cpp
|
|
from lib import arch
|
|
from lib.make import *
|
|
|
|
version("2.5.1")
|
|
description("package compiler and linker metadata toolkit")
|
|
source_url("https://distfiles.ariadne.space/pkgconf/pkgconf-2.5.1.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
def build():
|
|
cpp.configure(
|
|
[
|
|
"--prefix=/",
|
|
f"--bindir={get_prefix('pkgconf')}/bin",
|
|
f"--libdir={get_prefix('libpkgconf')}/lib",
|
|
f"--includedir={get_prefix('libpkgconf-dev')}/include",
|
|
f"--with-system-libdir=/lib:/lib/{arch.get_target()}",
|
|
f"--with-system-includedir=/lib/{arch.get_target()}/include",
|
|
f"--with-pkg-config-dir=/lib/{arch.get_target()}/pkgconfig",
|
|
]
|
|
)
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("libpkgconf")
|
|
cpp.use_auto_pack(["lib"])
|
|
dep("semi-libc @same-arch")
|
|
|
|
package("pkgconf")
|
|
cpp.use_auto_pack(["bin"])
|
|
dep("libpkgconf (same)")
|
|
link("bin/pkgconf", "/bin/pkg-config")
|
|
|
|
package("libpkgconf-dev")
|
|
cpp.use_auto_pack(["dev"])
|
|
dep("libpkgconf (same)")
|