forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aee73b0820 |
@@ -0,0 +1,48 @@
|
||||
import os
|
||||
|
||||
import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.3.15")
|
||||
description("Graphite is a \"smart font\" system developed specifically to handle the complexities of lesser-known languages of the world.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/silnrsi/graphite/releases/download/1.3.15/graphite2-1.3.15.tgz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/cmake")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
f"-DCMAKE_INSTALL_PREFIX={get_prefix('libgraphite-dev')}",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_dev(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
composer.add_dir("include", "include")
|
||||
composer.add_dir("share", "share")
|
||||
composer.makedir("lib")
|
||||
composer.add_dir("lib/pkgconfig", "lib/pkgconfig")
|
||||
for i in os.listdir("lib"):
|
||||
if not os.path.isfile(f"lib/{i}"):
|
||||
continue
|
||||
if ".so" in i:
|
||||
os.symlink(f"{get_prefix('libgraphite')}/lib/{i}", f"{composer.workdir}/bundle/lib/{i}")
|
||||
else:
|
||||
composer.addfile(f"lib/{i}", f"lib/{i}")
|
||||
|
||||
|
||||
package("libgraphite")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libgraphite-dev")
|
||||
dep("libgraphite (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
on_pack(pack_dev)
|
||||
@@ -1,31 +0,0 @@
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("2.15.3")
|
||||
description("an XML toolkit implemented in C, originally developed for the GNOME Project")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.3.tar.xz")
|
||||
|
||||
builddep("shortcut/autotools")
|
||||
builddep("shortcut/cmake")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
f"--libdir={get_prefix('libxml2')}/lib",
|
||||
f"--includedir={get_prefix('libxml2-dev')}/include",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libxml2")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libxml2-dev")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Reference in New Issue
Block a user