44 lines
1013 B
Python
44 lines
1013 B
Python
import os
|
|
|
|
import lib.cpp as cpp
|
|
from lib.make import *
|
|
|
|
version("3.53.4")
|
|
description("a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine")
|
|
source_url("https://sqlite.org/2026/sqlite-autoconf-3530400.tar.gz")
|
|
|
|
builddep("shortcut/autotools")
|
|
builddep("shortcut/c")
|
|
builddep("linenoise-dev")
|
|
|
|
|
|
def build():
|
|
cpp.configure(
|
|
[
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libsqlite')}/lib",
|
|
f"--bindir={get_prefix('sqlite')}/bin",
|
|
f"--includedir={get_prefix('libsqlite-dev')}/include",
|
|
"--all",
|
|
"--with-linenoise=/pkg/linenoise-dev=2.0@any",
|
|
"--icu-collations",
|
|
]
|
|
)
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("libsqlite")
|
|
cpp.use_auto_pack(["lib"])
|
|
dep("semi-libc @same-arch")
|
|
|
|
package("sqlite")
|
|
cpp.use_auto_pack(["bin"])
|
|
dep("libsqlite (same)")
|
|
|
|
package("libsqlite-dev")
|
|
cpp.use_auto_pack(["dev"])
|
|
dep("libsqlite (same)")
|