forked from semios/ports
@@ -0,0 +1,44 @@
|
||||
import os
|
||||
|
||||
import lib.cpp as cpp, packie
|
||||
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")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
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",
|
||||
f"--with-linenoise={packie.prefix_of('linenoise-dev')}",
|
||||
"--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)")
|
||||
Reference in New Issue
Block a user