Merge pull request 'feat: add package flex' (#100) from sisungo/semios-packages:flex into master

Reviewed-on: #100
This commit was merged in pull request #100.
This commit is contained in:
2026-07-07 11:57:43 +08:00
+23
View File
@@ -0,0 +1,23 @@
from lib import cpp
from lib.make import *
version("2.6.4")
source_url("https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz")
def build():
cpp.configure(
[
f"--prefix={get_prefix('flex')}",
"--disable-nls",
]
)
cpp.make()
cpp.make_install()
on_build(build)
package("flex")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["bin", "lib", "dev"])