forked from semios/semios-packages
Merge pull request 'feat: add package pkgconf' (#23) from sisungo/semios-packages:pkgconf into master
Reviewed-on: semios/semios-packages#23
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
import lib.cpp as cpp
|
||||||
|
from lib import arch
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("2.5.1")
|
||||||
|
source_url("https://distfiles.ariadne.space/pkgconf/pkgconf-2.5.1.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure(
|
||||||
|
[
|
||||||
|
"--prefix=/",
|
||||||
|
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"])
|
||||||
|
|
||||||
|
package("pkgconf")
|
||||||
|
cpp.use_auto_pack(["bin"])
|
||||||
|
|
||||||
|
package("libpkgconf-dev")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
Reference in New Issue
Block a user