feat: add package foot & dependencies
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
1 parent
8232d4e393
commit
90c73b76f5
4 files changed
+127
No files matched your search
@@ -63,6 +63,16 @@ def autolink_fonts():
|
|||||||
if i.is_file() and os.access(i.path, os.F_OK):
|
if i.is_file() and os.access(i.path, os.F_OK):
|
||||||
make.link(f"share/fonts/{i.name}", "/share/fonts/" + i.name)
|
make.link(f"share/fonts/{i.name}", "/share/fonts/" + i.name)
|
||||||
|
|
||||||
|
def autolink_applications():
|
||||||
|
for i in common.treedir("share/applications"):
|
||||||
|
if i.is_file():
|
||||||
|
make.link(f"share/applications/{i.name}", "/share/applications/" + i.name)
|
||||||
|
|
||||||
|
def autolink_icons():
|
||||||
|
for i in common.treedir("share/icons"):
|
||||||
|
if i.is_file():
|
||||||
|
make.link(f"share/icons/{i.name}", "/share/icons/" + i.name)
|
||||||
|
|
||||||
|
|
||||||
def autolink(composer: pkgcomposer.PkgComposer):
|
def autolink(composer: pkgcomposer.PkgComposer):
|
||||||
os.chdir(composer.workdir + "/bundle/")
|
os.chdir(composer.workdir + "/bundle/")
|
||||||
@@ -74,3 +84,5 @@ def autolink(composer: pkgcomposer.PkgComposer):
|
|||||||
do(autolink_services)
|
do(autolink_services)
|
||||||
do(autolink_milestones)
|
do(autolink_milestones)
|
||||||
do(autolink_fonts)
|
do(autolink_fonts)
|
||||||
|
do(autolink_applications)
|
||||||
|
do(autolink_icons)
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
|
||||||
|
version("3.3.3")
|
||||||
|
description("A simple library for font loading and glyph rasterization using FontConfig, FreeType and pixman.")
|
||||||
|
maintainer("sisungo <[email protected]>")
|
||||||
|
source_managed("gitea://codeberg.org/dnkl/fcft#3.3.3")
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/meson")
|
||||||
|
builddep("libfontconfig-dev @target")
|
||||||
|
builddep("libfreetype-dev @target")
|
||||||
|
builddep("tllist-dev @target")
|
||||||
|
builddep("libpixman-dev @target")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.meson_setup([
|
||||||
|
"--prefix=/",
|
||||||
|
f"--libdir={get_prefix('libfcft')}/lib",
|
||||||
|
f"--includedir={get_prefix('libfcft-dev')}/include",
|
||||||
|
])
|
||||||
|
cpp.meson_compile()
|
||||||
|
cpp.meson_install()
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
package("libfcft")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
dep("libfontconfig @same-arch")
|
||||||
|
dep("libfreetype @same-arch")
|
||||||
|
dep("libpixman @same-arch")
|
||||||
|
cpp.use_auto_pack(["lib"])
|
||||||
|
|
||||||
|
package("libfcft-dev")
|
||||||
|
dep("libfcft (same)")
|
||||||
|
dep("libfontconfig-dev @same-arch")
|
||||||
|
dep("libfreetype-dev @same-arch")
|
||||||
|
dep("libpixman-dev @same-arch")
|
||||||
|
dep("semi-libc-dev @same-arch")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
|
||||||
|
version("1.28.0")
|
||||||
|
description("A fast, lightweight and minimalistic Wayland terminal emulator")
|
||||||
|
maintainer("sisungo <[email protected]>")
|
||||||
|
source_managed("gitea://codeberg.org/dnkl/foot#1.28.0")
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/meson")
|
||||||
|
builddep("ncurses-tools @target")
|
||||||
|
builddep("libncurses-dev @target")
|
||||||
|
builddep("libwayland-dev @target")
|
||||||
|
builddep("wayland-protocols @target")
|
||||||
|
builddep("libpixman-dev @target")
|
||||||
|
builddep("libxkbcommon-dev @target")
|
||||||
|
builddep("libfontconfig-dev @target")
|
||||||
|
builddep("tllist-dev @target")
|
||||||
|
builddep("libfcft-dev @target")
|
||||||
|
builddep("gnu-sed")
|
||||||
|
builddep("linux-dev @target")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.meson_setup([f"--prefix={get_prefix('foot')}"])
|
||||||
|
cpp.meson_compile()
|
||||||
|
cpp.meson_install()
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
def pack(composer):
|
||||||
|
composer.add("bin")
|
||||||
|
composer.makedir("share")
|
||||||
|
composer.add("share/applications")
|
||||||
|
composer.add("share/icons")
|
||||||
|
composer.add("share/foot")
|
||||||
|
|
||||||
|
package("foot")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
dep("libxkbcommon @same-arch")
|
||||||
|
dep("xkeyboard-config")
|
||||||
|
dep("libpixman @same-arch")
|
||||||
|
dep("libfontconfig @same-arch")
|
||||||
|
dep("libwayland @same-arch")
|
||||||
|
dep("libfcft @same-arch")
|
||||||
|
on_pack(pack)
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
|
||||||
|
version("1.1.0")
|
||||||
|
description("A C header file only implementation of a typed linked list.")
|
||||||
|
maintainer("sisungo <[email protected]>")
|
||||||
|
source_managed("gitea://codeberg.org/dnkl/tllist#1.1.0")
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/meson")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.meson_setup([f"--prefix={get_prefix('tllist-dev')}"])
|
||||||
|
cpp.meson_compile()
|
||||||
|
cpp.meson_install()
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
|
||||||
|
package("tllist-dev")
|
||||||
|
dep("semi-libc-dev @same-arch")
|
||||||
|
cpp.use_auto_pack(["dev"])
|
||||||
Reference in new issue
Block a user