Compare commits

..
1 Commits
Author SHA1 Message Date
sisungo 9711728da6 feat: add package PyYAML
Signed-off-by: sisungo <[email protected]>
2026-08-16 09:38:46 +08:00
2 changed files with 22 additions and 43 deletions
+22
View File
@@ -0,0 +1,22 @@
from lib.make import *
from lib import python
python.version("6.0.3")
description("YAML parser and emitter for Python")
maintainer("sisungo <[email protected]>")
source_url("https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz")
python.builddep("$shortcut")
def build():
python.build()
python.install()
on_build(build)
package("PyYAML.py")
python.dep("python")
python.use_auto_pack()
-43
View File
@@ -1,43 +0,0 @@
from lib import arch, cpp
from lib.make import *
version("2.14.3")
description("a freely available software library to render fonts")
maintainer("sisungo <[email protected]>")
source_url("https://download.savannah.gnu.org/releases/freetype/freetype-2.14.3.tar.xz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("pkgconf")
builddep(f"libz-ng-dev @{arch.get_target()}")
builddep(f"libbzip2-dev @{arch.get_target()}")
builddep(f"libpng-dev @{arch.get_target()}")
builddep(f"libbrotli-dev @{arch.get_target()}")
def build():
cpp.configure([
f"--libdir={get_prefix('libfreetype')}/lib",
f"--includedir={get_prefix('libfreetype-dev')}/include"
])
cpp.make()
cpp.make_install()
on_build(build)
package("libfreetype")
dep("libz @same-arch")
dep("libpng @same-arch")
dep("libbzip2 @same-arch")
dep("libbrotli @same-arch")
cpp.use_auto_pack(["lib"])
package("libfreetype-dev")
dep("libfreetype (same)")
dep("libz-dev @same-arch")
dep("libpng-dev @same-arch")
dep("libbzip2-dev @same-arch")
dep("libbrotli-dev @same-arch")
cpp.use_auto_pack(["dev"])