Compare commits

..
1 Commits
Author SHA1 Message Date
sisungo 57578dcb05 feat: add package pcre2
Signed-off-by: sisungo <[email protected]>
2026-07-06 19:01:54 +08:00
2 changed files with 35 additions and 22 deletions
-22
View File
@@ -1,22 +0,0 @@
import os
from lib import cpp
from lib.make import *
version("2.0")
source_url("https://www.invisible-island.net/archives/byacc/byacc-2.0.tgz")
def build():
cpp.configure([f"--prefix={get_prefix('byacc')}", "--enable-btyacc"])
cpp.make()
cpp.make_install()
os.rename("bin/yacc", "bin/byacc")
on_build(build)
package("byacc")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["bin", "lib", "dev"])
link("bin/byacc", "/bin/yacc")
+35
View File
@@ -0,0 +1,35 @@
from lib import cpp
from lib.make import *
version("10.47")
source_url(
"https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/pcre2-10.47.tar.gz"
)
def build():
cpp.configure(
[
"--prefix=/",
f"--libdir={get_prefix('libpcre2')}/lib",
f"--bindir={get_prefix('pcre2-tools')}/bin",
"--enable-jit",
]
)
cpp.make()
cpp.make_install()
on_build(build)
package("libpcre2")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("pcre2-tools")
dep("libpcre2 (same)")
cpp.use_auto_pack(["bin"])
dep("libpcre2-dev")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["dev"])