1 Commits
Author SHA256 Message Date
sisungo cd7b10690e feat: add gtk & dependencies
Signed-off-by: sisungo <[email protected]>
2026-09-11 07:32:43 +00:00
32 changed files with 552 additions and 529 deletions
-20
View File
@@ -41,16 +41,6 @@ def autolink_share_pkgconfig():
if i.is_file(): if i.is_file():
make.link(f"share/pkgconfig/{i.name}", "/share/pkgconfig/" + i.name) make.link(f"share/pkgconfig/{i.name}", "/share/pkgconfig/" + i.name)
def autolink_services():
for i in common.treedir("share/services"):
if i.is_file() and os.access(i.path, os.F_OK):
make.link(f"share/services/{i.name}", "/share/services/" + i.name)
def autolink_milestones():
for i in common.treedir("share/milestones"):
if i.is_file() and os.access(i.path, os.F_OK):
make.link(f"share/milestones/{i.name}", "/share/milestones/" + i.name)
def autolink(composer: pkgcomposer.PkgComposer): def autolink(composer: pkgcomposer.PkgComposer):
os.chdir(composer.workdir + "/bundle/") os.chdir(composer.workdir + "/bundle/")
@@ -74,13 +64,3 @@ def autolink(composer: pkgcomposer.PkgComposer):
autolink_share_pkgconfig() autolink_share_pkgconfig()
except: except:
pass pass
try:
autolink_services()
except:
pass
try:
autolink_milestones()
except:
pass
-8
View File
@@ -16,7 +16,6 @@ _key_links = "links"
_key_dependencies = "dependencies" _key_dependencies = "dependencies"
_key_recommendations = "recommendations" _key_recommendations = "recommendations"
_key_provides = "provides" _key_provides = "provides"
_key_configure = "configure"
_current_pkgname: str = _key_global _current_pkgname: str = _key_global
_pkginfo: dict[str, dict[str, typing.Any]] = { _pkginfo: dict[str, dict[str, typing.Any]] = {
@@ -26,7 +25,6 @@ _pkginfo: dict[str, dict[str, typing.Any]] = {
_key_maintainers: [], _key_maintainers: [],
_key_provides: [], _key_provides: [],
_key_recommendations: [], _key_recommendations: [],
_key_configure: [],
}, },
} }
_supported_arch: typing.Callable[[str], bool] = lambda x: True _supported_arch: typing.Callable[[str], bool] = lambda x: True
@@ -89,12 +87,6 @@ def provide(s: str):
] ]
def configure_script(s: str):
_pkginfo[_current_pkgname][_key_configure] += [
os.path.realpath(s)
]
def _translate_dep_spec(s: str) -> str: def _translate_dep_spec(s: str) -> str:
return ( return (
s.replace("(same)", "(same-version) @same-arch") s.replace("(same)", "(same-version) @same-arch")
-9
View File
@@ -25,15 +25,6 @@ class PkgComposer:
json.dump(link, f) json.dump(link, f)
f.write("\n") f.write("\n")
def add_configure(self, path: str, name: str = None):
if name is None:
name = os.path.basename(path)
configuredir = self.workdir + "/configure/"
dstpath = configuredir + name
os.makedirs(configuredir, exist_ok=True)
shutil.copy2(path, dstpath)
os.chmod(dstpath, 0o755)
def compose(self): def compose(self):
subprocess.run( subprocess.run(
[ [
+2 -2
View File
@@ -1,8 +1,8 @@
{ {
"os_name": "\u001b[36;4mSemiOS\u001b[0m", "os_name": "\u001b[36;4mSemiOS\u001b[0m",
"config_dir": "/var/config/airup", "config_dir": "/var/config/airup",
"service_dir": "/share/services", "service_dir": "/share/airup/services",
"milestone_dir": "/share/milestones", "milestone_dir": "/share/airup/milestones",
"runtime_dir": "/run/airup", "runtime_dir": "/run/airup",
"env_vars": {}, "env_vars": {},
"early_cmds": [] "early_cmds": []
+2 -19
View File
@@ -16,30 +16,14 @@ def build():
shutil.copy2("../../build_manifest.json", "build_manifest.json") shutil.copy2("../../build_manifest.json", "build_manifest.json")
rust.build() rust.build()
on_build(build) on_build(build)
def patch_logger_airs(path):
with open(path) as fd:
content = fd.read()
content = content.replace(
"/usr/libexec/airup/airup-fallback-logger",
get_prefix('airup') + "/libexec/airup-fallback-logger",
)
with open(path, 'wt+') as fd:
fd.write(content)
def pack_airup(composer): def pack_airup(composer):
os.chdir(rust.artifacts_dir())
composer.makedir("bin") composer.makedir("bin")
composer.makedir("libexec") composer.makedir("libexec")
composer.makedirs("share/services")
patch_logger_airs("docs/resources/airup-fallback-logger.airs")
composer.addfile("docs/resources/airup-fallback-logger.airs", "share/services/airup-fallback-logger.airs")
composer.addfile("docs/resources/airupd.airs", "share/services/airupd.airs")
os.chdir(rust.artifacts_dir())
composer.addfile("airup", "bin/airup") composer.addfile("airup", "bin/airup")
composer.addfile("airupd", "bin/airupd") composer.addfile("airupd", "bin/airupd")
composer.addfile("airup-fallback-logger", "libexec/airup-fallback-logger") composer.addfile("airup-fallback-logger", "libexec/airup-fallback-logger")
@@ -48,4 +32,3 @@ def pack_airup(composer):
package("airup") package("airup")
on_pack(pack_airup) on_pack(pack_airup)
dep("semi-libc @same-arch") dep("semi-libc @same-arch")
link("bin/airupd", "/bin/init")
@@ -1,6 +0,0 @@
#!/bin/sh
[ "${ACTION}" = "remove" ] && exit 0
command -v certutil >/dev/null 2>&1 || exit 0
certutil refresh
-2
View File
@@ -27,6 +27,4 @@ def pack(composer):
package("ca-certificates") package("ca-certificates")
arch_any() arch_any()
configure_script("configure/refresh")
recommend("certutil")
on_pack(pack) on_pack(pack)
+89
View File
@@ -0,0 +1,89 @@
import os
import glob
from lib import cpp
from lib.make import *
version("1.18.4")
description("a 2D graphics library with support for multiple output devices")
maintainer("sisungo <[email protected]>")
source_url("https://gitlab.com/freedesktop-sdk/mirrors/freedesktop/cairo/cairo/-/archive/1.18.4/cairo-1.18.4.tar.gz")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("pkgconf")
builddep("glib-dev @target")
builddep("libfontconfig-dev @target")
builddep("libfreetype-dev @target")
builddep("libpng-dev @target")
builddep("libpixman-dev @target")
def fix_gobject_pc(path):
with open(path, 'r') as file:
content = file.read()
content = content.replace(get_prefix('libcairo'), get_prefix('libcairo-gobject'))
content = content.replace(get_prefix('libcairo-dev'), get_prefix('libcairo-gobject-dev'))
with open(path, 'wt+') as file:
file.write(content)
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libcairo')}/lib",
f"--includedir={get_prefix('libcairo-dev')}/include",
f"--bindir={get_prefix('libcairo-dev')}/bin",
"-Dfontconfig=enabled",
"-Dfreetype=enabled",
"-Dpng=enabled",
"-Dtee=enabled",
"-Dglib=enabled",
])
cpp.meson_compile()
cpp.meson_install()
fix_gobject_pc("lib/pkgconfig/cairo-gobject.pc")
on_build(build)
def pack_glob(composer, globs, excluded_kw=[]):
for iglob in globs:
for i in glob.glob(iglob):
if any(excluded_pattern in i for excluded_pattern in excluded_kw):
continue
composer.makedirs(os.path.dirname(i))
if os.path.islink(i) or os.path.isfile(i):
composer.addfile(i)
else:
composer.add_dir(i)
package("libcairo")
dep("libfontconfig @same-arch")
dep("libpng @same-arch")
dep("libpixman @same-arch")
dep("libfreetype @same-arch")
dep("libz @same-arch")
on_pack(lambda c: pack_glob(c, ["lib/cairo", "lib/*so*"], ["gobject"]))
package("libcairo-dev")
dep("libcairo (same)")
dep("libfontconfig-dev @same-arch")
dep("libpng-dev @same-arch")
dep("libpixman-dev @same-arch")
dep("libfreetype-dev @same-arch")
dep("libz-dev @same-arch")
on_pack(lambda c: pack_glob(c, ["lib/pkgconfig/*", "include/cairo/*"], ["gobject"]))
package("libcairo-gobject")
dep("libcairo (same)")
dep("libglib @same-arch")
dep("libgobject @same-arch")
on_pack(lambda c: pack_glob(c, ["lib/*gobject*"]))
package("libcairo-gobject-dev")
dep("libcairo-dev (same)")
dep("glib-dev @same-arch")
on_pack(lambda c: pack_glob(c, ["include/cairo/*gobject*", "lib/pkgconfig/*gobject*"]))
+39
View File
@@ -0,0 +1,39 @@
from lib.make import *
from lib import cpp, arch
version("1.5.10")
description("a library for handling OpenGL function pointer management")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/libepoxy/1.5/libepoxy-1.5.10.tar.xz")
builddep("shortcut/c++")
builddep("shortcut/meson")
builddep("libegl-dev @target")
builddep("libopengl-dev @target")
builddep("libglesv2-dev @target")
builddep("libexpat")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libepoxy')}/lib",
f"--includedir={get_prefix('libepoxy-dev')}/include",
"-Dx11=false",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libepoxy")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libepoxy-dev")
dep("libepoxy (same)")
dep("libegl-dev @same-arch")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])
+60
View File
@@ -0,0 +1,60 @@
from lib.make import *
from lib import cpp, arch
version("2.44.8")
description("a library that loads image data in various formats and stores it as linear buffers in memory")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/gdk-pixbuf/2.44/gdk-pixbuf-2.44.8.tar.xz")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("libjpeg-turbo-dev @target")
builddep("libtiff-dev @target")
builddep("libpng-dev @target")
builddep("glib-dev @target")
builddep("gobject-introspection @target")
builddep("shared-mime-info")
builddep("glib-tools")
def build():
cpp.meson_setup([
f"--libdir={get_prefix('gdk-pixbuf')}/lib",
f"--includedir={get_prefix('gdk-pixbuf-dev')}/include",
"-Dpng=enabled",
"-Dtiff=enabled",
"-Djpeg=enabled",
"-Dgif=enabled",
"-Dglycin=disabled",
"-Dintrospection=enabled",
"-Drelocatable=false",
"-Dman=false",
"-Dtests=false",
"-Dinstalled_tests=false",
"-Dthumbnailer=enabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("gdk-pixbuf")
dep("libpng @same-arch")
dep("libglib @same-arch")
dep("libgobject @same-arch")
dep("libgmodule @same-arch")
dep("libgio @same-arch")
dep("libjpeg-turbo @same-arch")
dep("libtiff @same-arch")
cpp.use_auto_pack(["bin", "lib"])
package("gdk-pixbuf-dev")
dep("libpng-dev @same-arch")
dep("glib-dev @same-arch")
dep("libjpeg-turbo-dev @same-arch")
dep("libtiff-dev @same-arch")
dep("shared-mime-info")
dep("gdk-pixbuf (same)")
cpp.use_auto_pack(["dev"])
+4 -6
View File
@@ -14,14 +14,13 @@ source_url("https://download.gnome.org/sources/glib/2.89/glib-2.89.2.tar.xz")
builddep("shortcut/c++") builddep("shortcut/c++")
builddep("shortcut/meson") builddep("shortcut/meson")
builddep("gettext") builddep("gettext")
builddep("libintl-dev @target") builddep(f"libintl-dev @{arch.get_target()}")
builddep("pcre2-tools") builddep("pcre2-tools")
builddep("libpcre2-dev @target") builddep(f"libpcre2-dev @{arch.get_target()}")
builddep("libffi-dev @target") builddep(f"libffi-dev @{arch.get_target()}")
builddep("pkgconf") builddep("pkgconf")
builddep("libz-ng-dev @target") builddep(f"libz-ng-dev @{arch.get_target()}")
builddep("libexpat") builddep("libexpat")
builddep("gobject-introspection @target")
def build(): def build():
@@ -30,7 +29,6 @@ def build():
cpp.meson_setup([ cpp.meson_setup([
"-Druntime_dir=/run", "-Druntime_dir=/run",
f"-Dgio_module_dir=/lib/{arch.get_target()}/gio/modules", f"-Dgio_module_dir=/lib/{arch.get_target()}/gio/modules",
"-Dintrospection=enabled",
"--prefix=/", "--prefix=/",
f"--bindir={get_prefix('glib-tools')}/bin", f"--bindir={get_prefix('glib-tools')}/bin",
f"--libdir={get_prefix('glib-dev')}/lib", f"--libdir={get_prefix('glib-dev')}/lib",
@@ -1,49 +0,0 @@
import shutil
from lib.make import *
from lib import cpp, arch
version("1.86.0")
description("to describe the APIs and collect them in a uniform, machine readable format")
maintainer("sisungo <[email protected]>")
source_url("https://gitlab.gnome.org/GNOME/gobject-introspection/-/archive/1.86.0/gobject-introspection-1.86.0.tar.gz")
builddep("shortcut/meson")
builddep("shortcut/c")
builddep("glib-dev @target")
builddep("setuptools.py @target")
builddep("libpython-dev @target")
builddep("flex")
builddep("bison")
builddep("libexpat @target")
def build():
cpp.meson_setup([
f"--prefix={get_prefix('gobject-introspection')}",
f"-Dgir_dir_prefix=/lib/{arch.get_target()}/include/gir",
"-Dcairo=disabled",
"-Dpython=/bin/python3",
"-Dtests=false",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
def pack(composer):
composer.add_dir("include")
composer.add_dir("share")
composer.add_dir("bin")
composer.add_dir("lib")
shutil.rmtree(f"{composer.workdir}/bundle/lib/{arch.get_target()}")
composer.add_dir(f"lib/{arch.get_target()}/include/gir", "include/gir")
package("gobject-introspection")
dep("python @same-arch")
dep("setuptools.py @same-arch")
dep("glib-dev @same-arch")
on_pack(pack)
+61
View File
@@ -0,0 +1,61 @@
import glob
import os
import shutil
from lib.make import *
from lib import cpp
version("1.10.8")
description("A thin layer of graphic data types")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/ebassi/graphene/archive/refs/tags/1.10.8.tar.gz")
builddep("shortcut/meson")
builddep("shortcut/c++")
builddep("glib-dev @target")
builddep("gobject-introspection @target")
builddep("glib-tools")
builddep("libexpat")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libgraphene')}/lib",
f"--includedir={get_prefix('libgraphene-dev')}/include",
"-Dgobject_types=true",
"-Dintrospection=enabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
def pack(composer):
composer.makedir("lib")
for i in glob.glob("lib/*.so*"):
composer.add(i)
composer.add("lib/girepository-1.0")
composer.link_external(f"{get_prefix('libgraphene-dev')}/lib/graphene-1.0", "lib/graphene-1.0")
package("libgraphene")
dep("libgobject @same-arch")
dep("libglib @same-arch")
dep("semi-libc @same-arch")
on_pack(pack)
def pack_dev(composer):
composer.add("include")
composer.makedir("include/gir")
composer.makedir("lib")
composer.add("lib/graphene-1.0")
composer.add("lib/pkgconfig")
composer.add("share/gir-1.0", "include/gir/gir-1.0")
package("libgraphene-dev")
dep("libgraphene (same)")
dep("glib-dev @same-arch")
dep("semi-libc-dev @same-arch")
on_pack(pack_dev)
+39
View File
@@ -0,0 +1,39 @@
from lib.make import *
from lib import cpp, arch
version("0.4.42")
description("Orc - Optimized Inner Loop Runtime Compiler")
maintainer("sisungo <[email protected]>")
source_url("https://gstreamer.freedesktop.org/data/src/orc/orc-0.4.42.tar.xz")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("linux-dev @target")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('gstreamer-liborc')}/lib",
f"--bindir={get_prefix('gstreamer-orc')}/bin",
f"--includedir={get_prefix('gstreamer-liborc-dev')}/include",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("gstreamer-liborc")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("gstreamer-orc")
dep("gstreamer-liborc (same)")
cpp.use_auto_pack(["bin"])
package("gstreamer-liborc-dev")
dep("gstreamer-liborc (same)")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])
+61
View File
@@ -0,0 +1,61 @@
from lib.make import *
from lib import cpp, arch
version("1.28.6")
description("GStreamer multimedia framework")
maintainer("sisungo <[email protected]>")
source_url("https://gitlab.freedesktop.org/gstreamer/gstreamer/-/archive/1.28.6/gstreamer-1.28.6.tar.gz")
builddep("shortcut/c++")
builddep("shortcut/meson")
builddep("glib-dev @target")
builddep("glib-tools")
builddep("libpython-dev @target")
builddep("gobject-introspection @target")
builddep("libintl-dev @target")
builddep("gettext")
builddep("flex")
builddep("bison")
builddep("libexpat")
builddep("libdrm-dev @target")
builddep("gstreamer-liborc-dev @target")
builddep("gstreamer-orc @target")
builddep("libopengl-dev @target")
builddep("libegl-dev @target")
builddep("libglesv2-dev @target")
builddep("alsa-lib-dev @target")
def build():
cpp.meson_setup([
"-Dbase=enabled",
"-Dgood=enabled",
"-Dugly=disabled",
"-Dbad=disabled",
"-Dlibav=auto",
"-Ddevtools=enabled",
"-Dges=enabled",
"-Drtsp_server=enabled",
"-Drs=disabled",
"-Dgst-examples=disabled",
"-Dpython=enabled",
"-Dpython-exe=/bin/python3",
"-Dtls=disabled",
"-Dlibnice=disabled",
"-Dgtk=disabled",
"-Dtools=enabled",
"-Dintrospection=enabled",
"-Dnls=enabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("gtk4")
cpp.use_auto_pack(["bin", "lib"])
package("gtk4-dev")
cpp.use_auto_pack(["dev"])
+43
View File
@@ -0,0 +1,43 @@
from lib.make import *
from lib import cpp, arch
version("4.23.3")
description("The main GTK4 library.")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/gtk/4.23/gtk-4.23.3.tar.xz")
builddep("shortcut/c++")
builddep("shortcut/meson")
builddep("glib-dev @target")
builddep("gdk-pixbuf-dev @target")
builddep("gobject-introspection @target")
builddep("glib-tools")
builddep("libwayland-dev @target")
builddep("wayland-protocols @target")
builddep("libpango-dev @target")
builddep("libcairo-gobject-dev @target")
builddep("libepoxy-dev @target")
builddep("libxkbcommon-dev @target")
builddep("libgraphene-dev @target")
def build():
cpp.meson_setup([
"-Dx11-backend=false",
"-Dmedia-gstreamer=enabled",
"-Dprint-cups=disabled",
"-Dvulkan=enabled",
"-Dintrospection=enabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("gtk4")
cpp.use_auto_pack(["bin", "lib"])
package("gtk4-dev")
cpp.use_auto_pack(["dev"])
-26
View File
@@ -1,26 +0,0 @@
import subprocess
import os
import lib
from lib.make import *
version("0.1.0-alpha.1")
description("SemiOS init scripts")
maintainer("sisungo <[email protected]>")
source_url("https://gitea.semilabs.org/semios/init-scripts/archive/0.1.0-alpha.1.tar.gz")
def build():
subprocess.run(["env", f"PREFIX={get_prefix('init-scripts')}", "sh", "install.sh"], check=True)
os.chdir("./target")
on_build(build)
def pack(composer):
composer.add("share")
composer.add("bin")
package("init-scripts")
arch_any()
on_pack(pack)
-38
View File
@@ -1,38 +0,0 @@
from lib import cpp
from lib.make import *
version("1.13.7")
description("Wrapper library for evdev devices")
maintainer("sisungo <[email protected]>")
source_url("https://gitlab.freedesktop.org/libevdev/libevdev/-/archive/libevdev-1.13.7/libevdev-libevdev-1.13.7.tar.gz?ref_type=tags")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("linux-dev @target")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libevdev')}/lib",
f"--includedir={get_prefix('libevdev-dev')}/include",
"-Dtests=disabled",
"-Ddocumentation=disabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libevdev")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libevdev-tools")
dep("libevdev (same)")
cpp.use_auto_pack(["bin"])
package("libevdev-dev")
dep("libevdev (same)")
cpp.use_auto_pack(["dev"])
@@ -1,6 +0,0 @@
--- a/gudev/meson.build
+++ b/gudev/meson.build
36c36
< '-export-dynamic',
---
> '-Wl,-export-dynamic',
-42
View File
@@ -1,42 +0,0 @@
from lib import cpp
from lib.make import *
version("238")
description("Input device management and event handling library")
maintainer("sisungo <[email protected]>")
source_url("https://gitlab.gnome.org/GNOME/libgudev/-/archive/238/libgudev-238.tar.gz")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("gobject-introspection @target")
builddep("glib-dev @target")
builddep("lxdeviced-libudev-dev @target")
builddep("glib-tools")
builddep("libexpat")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libgudev')}/lib",
f"--includedir={get_prefix('libgudev-dev')}/include",
"-Dintrospection=enabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libgudev")
dep("semi-libc @same-arch")
dep("lxdeviced-libudev @same-arch")
dep("libglib @same-arch")
dep("libgobject @same-arch")
cpp.use_auto_pack(["lib"])
package("libgudev-dev")
dep("libgudev (same)")
dep("lxdeviced-libudev-dev @same-arch")
dep("glib-dev @same-arch")
cpp.use_auto_pack(["dev"])
-58
View File
@@ -1,58 +0,0 @@
import glob
from lib import cpp
from lib.make import *
version("1.30.4")
description("Input device management and event handling library")
maintainer("sisungo <[email protected]>")
source_url("https://gitlab.freedesktop.org/libinput/libinput/-/archive/1.30.4/libinput-1.30.4.tar.gz")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("lxdeviced-libudev-dev @target")
builddep("libevdev-dev @target")
builddep("libmtdev-dev @target")
builddep("libwacom-dev @target")
builddep("linux-dev @target")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libinput')}/lib",
f"--libexecdir={get_prefix('libinput-tools')}/libexec",
f"--includedir={get_prefix('libinput-dev')}/include",
"--sysconfdir=/var/config",
f"--datadir={get_prefix('libinput')}/share",
"-Ddebug-gui=false",
"-Dtests=false",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
def pack(composer):
composer.makedir("lib")
for i in glob.glob("lib/*so*"):
composer.add(i)
composer.makedir("share")
composer.add("share/libinput")
def pack_tools(composer):
composer.add("bin")
composer.add("libexec")
package("libinput")
dep("semi-libc @same-arch")
on_pack(pack)
package("libinput-tools")
dep("libinput (same)")
on_pack(pack_tools)
package("libinput-dev")
dep("libinput (same)")
cpp.use_auto_pack(["dev"])
-32
View File
@@ -1,32 +0,0 @@
from lib import cpp
from lib.make import *
version("1.1.7")
description("a stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol")
maintainer("sisungo <[email protected]>")
source_url("https://bitmath.se/org/code/mtdev/mtdev-1.1.7.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("linux-dev @target")
def build():
cpp.configure([
"--prefix=/",
f"--libdir={get_prefix('libmtdev')}/lib",
f"--includedir={get_prefix('libmtdev-dev')}/include",
])
cpp.make()
cpp.make_install()
on_build(build)
package("libmtdev")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libmtdev-dev")
dep("libmtdev (same)")
cpp.use_auto_pack(["dev"])
-33
View File
@@ -1,33 +0,0 @@
from lib import cpp
from lib.make import *
version("1.3.6")
description("Ogg container format libraries")
maintainer("sisungo <[email protected]>")
source_url("https://downloads.xiph.org/releases/ogg/libogg-1.3.6.tar.xz")
builddep("shortcut/c")
builddep("shortcut/autotools")
def build():
cpp.configure(
[
"--prefix=/",
f"--libdir={get_prefix('libogg')}/lib",
f"--includedir={get_prefix('libogg-dev')}/include",
]
)
cpp.make()
cpp.make_install()
on_build(build)
package("libogg")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libogg-dev")
dep("libogg (same)")
cpp.use_auto_pack(["dev"])
-35
View File
@@ -1,35 +0,0 @@
from lib import cpp
from lib.make import *
version("1.3.7")
description("Reference implementation of the Ogg Vorbis audio format.")
maintainer("sisungo <[email protected]>")
source_url("https://downloads.xiph.org/releases/vorbis/libvorbis-1.3.7.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("libogg-dev @target")
def build():
cpp.configure(
[
"--prefix=/",
f"--libdir={get_prefix('libvorbis')}/lib",
f"--includedir={get_prefix('libvorbis-dev')}/include",
"--disable-oggtest",
]
)
cpp.make()
cpp.make_install()
on_build(build)
package("libvorbis")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libvorbis-dev")
dep("libvorbis (same)")
cpp.use_auto_pack(["dev"])
-48
View File
@@ -1,48 +0,0 @@
from lib import cpp
from lib.make import *
version("2.19.1")
description("libwacom is a tablet description library")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/linuxwacom/libwacom/releases/download/libwacom-2.19.1/libwacom-2.19.1.tar.xz")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("linux-dev @target")
builddep("libgudev-dev @target")
builddep("libevdev-dev @target")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libwacom')}/lib",
f"--bindir={get_prefix('libwacom-tools')}/bin",
f"--includedir={get_prefix('libwacom-dev')}/include",
f"--datadir={get_prefix('libwacom')}/share",
"-Dtests=disabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libwacom")
dep("semi-libc @same-arch")
dep("libgudev @same-arch")
dep("libgobject @same-arch")
dep("libglib @same-arch")
dep("libevdev @same-arch")
cpp.use_auto_pack(["lib"])
package("libwacom-tools")
dep("libwacom (same)")
cpp.use_auto_pack(["bin"])
package("libwacom-dev")
dep("libwacom (same)")
dep("libgudev-dev @same-arch")
dep("glib-dev @same-arch")
dep("libevdev-dev @same-arch")
cpp.use_auto_pack(["dev"])
-79
View File
@@ -1,79 +0,0 @@
import os
import shutil
from lib.make import *
from lib import cpp
version("1.6.0")
description("a library to encode and decode images in WebP format")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/webmproject/libwebp/archive/refs/tags/v1.6.0.tar.gz")
builddep("shortcut/c")
builddep("shortcut/cmake")
def split_libsharpyuv():
os.makedirs("sharpyuv/libdev/pkgconfig")
os.makedirs("sharpyuv/lib")
os.makedirs("sharpyuv/include")
os.rename("lib/pkgconfig/libsharpyuv.pc", "sharpyuv/libdev/pkgconfig/libsharpyuv.pc")
os.system("mv lib/libsharpyuv* sharpyuv/lib/")
os.rename("include/webp/sharpyuv", "sharpyuv/include/sharpyuv")
with open("sharpyuv/libdev/pkgconfig/libsharpyuv.pc", "r") as pcf:
pc = pcf.read()
pc = pc.replace(get_prefix("libwebp"), get_prefix("libsharpyuv"))
pc = pc.replace(f"{get_prefix('libwebp-dev')}/include/webp", f"{get_prefix('libsharpyuv-dev')}/include")
with open("sharpyuv/libdev/pkgconfig/libsharpyuv.pc", "wt+") as pcf:
pcf.write(pc)
def build():
cpp.cmake([
"-DBUILD_SHARED_LIBS=1",
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libwebp')}/lib",
f"-DCMAKE_INSTALL_BINDIR={get_prefix('libwebp-tools')}/bin",
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libwebp-dev')}/include",
])
cpp.ninja()
if os.path.exists("../cpp_install"):
shutil.rmtree("../cpp_install")
cpp.ninja_install()
split_libsharpyuv()
on_build(build)
def pack_libsharpyuv(composer):
composer.add_dir("sharpyuv/lib", "lib")
def pack_libsharpyuv_dev(composer):
composer.add_dir("sharpyuv/libdev", "lib")
composer.add_dir("sharpyuv/include", "include")
package("libsharpyuv")
description("Library for sharp RGB to YUV conversion")
dep("semi-libc @same-arch")
on_pack(pack_libsharpyuv)
package("libsharpyuv-dev")
description("Library for sharp RGB to YUV conversion")
dep("libsharpyuv (same)")
dep("semi-libc-dev @same-arch")
on_pack(pack_libsharpyuv_dev)
package("libwebp")
dep("semi-libc @same-arch")
dep("libsharpyuv (same)")
cpp.use_auto_pack(["lib"])
package("libwebp-tools")
dep("libwebp (same)")
cpp.use_auto_pack(["bin"])
package("libwebp-dev")
dep("libwebp (same)")
dep("libsharpyuv-dev (same)")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])
+6 -7
View File
@@ -1,15 +1,15 @@
from lib import arch, cpp from lib import arch, cpp
from lib.make import * from lib.make import *
version("2.15.3") version("2.15.3")
description("an XML toolkit implemented in C, originally developed for the GNOME Project") description("an XML toolkit implemented in C, originally developed for the GNOME Project")
maintainer("sisungo <[email protected]>") maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.3.tar.xz") source_url("https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.3.tar.xz")
builddep("shortcut/autotools") builddep("shortcut/autotools")
builddep("shortcut/c") builddep("shortcut/c")
def build(): def build():
cpp.configure([ cpp.configure([
@@ -27,6 +27,5 @@ dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"]) cpp.use_auto_pack(["lib"])
package("libxml2-dev") package("libxml2-dev")
dep("libxml2 (same)") dep("semi-libc @same-arch")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"]) cpp.use_auto_pack(["dev"])
+63
View File
@@ -0,0 +1,63 @@
import os
import shutil
from lib.make import *
from lib import cpp, python, arch
upstream_version = "1.1.45"
version(upstream_version)
description("an XSLT processor based on libxml2")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.45.tar.xz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("pkgconf @target")
builddep("libxml2-dev @target")
builddep("libpython-dev @target")
builddep("libexpat")
def build():
cpp.configure([
"--prefix=/",
f"--libdir={get_prefix('libxslt')}/lib",
f"--bindir={get_prefix('libxslt-tools')}/bin",
f"--includedir={get_prefix('libxslt-dev')}/include",
"--without-debug",
])
cpp.make()
if os.path.exists("../cpp_install"):
shutil.rmtree("../cpp_install")
cpp.make_install()
os.mkdir("py")
os.rename(f"lib/{arch.get_target()}/python{python.PY3_VERSION}", "py/arch")
os.rename(f"lib/python{python.PY3_VERSION}", "py/nonarch")
on_build(build)
package("libxslt")
dep("libxml2 @same-arch")
cpp.use_auto_pack(["lib"])
package("libxslt-tools")
dep("libxslt (same)")
cpp.use_auto_pack(["bin"])
package("libxslt-dev")
dep("libxslt (same)")
dep("libxml2-dev @same-arch")
cpp.use_auto_pack(["dev"])
def pack_py(composer):
composer.makedir("lib")
composer.add_dir("py/arch", f"lib/python{python.PY3_VERSION}", merge=True)
composer.add_dir("py/nonarch", f"lib/python{python.PY3_VERSION}", merge=True)
package("libxslt.py")
python.version(upstream_version)
dep(f"libxslt (={upstream_version}) @same-arch")
on_pack(pack_py)
-1
View File
@@ -35,7 +35,6 @@ Libs: -L${libdir} -ludev
def pack(composer): def pack(composer):
composer.makedirs("share/device") composer.makedirs("share/device")
composer.add_dir("misc/rules", "share/device/rules") composer.add_dir("misc/rules", "share/device/rules")
composer.add_dir("misc/airup", "share/services")
oldpwd = os.getcwd() oldpwd = os.getcwd()
os.chdir(rust.artifacts_dir()) os.chdir(rust.artifacts_dir())
composer.makedir("bin") composer.makedir("bin")
+63
View File
@@ -0,0 +1,63 @@
from lib.make import *
from lib import cpp
version("1.58.2")
description("Pango is a library for layout and rendering of text, with an emphasis on internationalization.")
maintainer("sisungo <[email protected]>")
source_url("https://gitlab.gnome.org/GNOME/pango/-/archive/1.58.2/pango-1.58.2.tar.gz")
builddep("shortcut/c++")
builddep("shortcut/meson")
builddep("gobject-introspection @target")
builddep("libfontconfig-dev @target")
builddep("libcairo-dev @target")
builddep("libcairo-gobject-dev @target")
builddep("libfreetype-dev @target")
builddep("glib-dev @target")
builddep("libfribidi-dev @target")
builddep("libharfbuzz-dev @target")
builddep("libharfbuzz-gobject-dev @target")
builddep("glib-tools")
def build():
cpp.meson_setup([
f"--libdir={get_prefix('libpango')}/lib",
f"--includedir={get_prefix('libpango-dev')}/include",
"-Dintrospection=enabled",
"-Dfontconfig=enabled",
"-Dcairo=enabled",
"-Dfreetype=enabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libpango")
dep("libfribidi @same-arch")
dep("libharfbuzz @same-arch")
dep("libglib @same-arch")
dep("libgio @same-arch")
dep("libgobject @same-arch")
dep("semi-libc @same-arch")
dep("libcairo @same-arch")
dep("libfontconfig @same-arch")
dep("libfreetype @same-arch")
cpp.use_auto_pack(["lib"])
package("pango")
dep("libpango (same)")
cpp.use_auto_pack(["bin"])
package("libpango-dev")
dep("libpango (same)")
dep("glib-dev @same-arch")
dep("libfribidi-dev @same-arch")
dep("libharfbuzz-gobject-dev @same-arch")
dep("libfontconfig-dev @same-arch")
dep("libfreetype-dev @same-arch")
dep("libcairo-dev @same-arch")
cpp.use_auto_pack(["dev"])
+20
View File
@@ -0,0 +1,20 @@
from lib.make import *
from lib import cpp
version("0.0.29")
description("A tool for converting XML files to various formats")
maintainer("sisungo <[email protected]>")
source_url("https://mirror1.semilabs.org/semios/srcpkgs/xmlto=0.0.29.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("libxslt-dev @target")
def build():
cpp.configure()
cpp.make()
cpp.make_install()
on_build(build)
-3
View File
@@ -123,9 +123,6 @@ def cmd_build_package(package: str):
} }
composer.write_manifest(manifest) composer.write_manifest(manifest)
composer.write_links(pkginfo[lib.make._key_links]) composer.write_links(pkginfo[lib.make._key_links])
for i in pkginfo[lib.make._key_configure]:
composer.add_configure(i)
composer.compose() composer.compose()
# Build success # Build success