diff --git a/common/shlibs b/common/shlibs index 1cc1b6815e7..39c868b0314 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4278,3 +4278,4 @@ libgsoapssl++-2.8.124.so gsoap-2.8.124_1 libjxl.so.0.8 libjxl-0.8.2_1 libjxl_dec.so.0.8 libjxl-0.8.2_1 libjxl_threads.so.0.8 libjxl-0.8.2_1 +libtext-engine-0.1.so.0 text-engine-0.1.1_1 diff --git a/srcpkgs/text-engine-demo b/srcpkgs/text-engine-demo new file mode 120000 index 00000000000..272d32cfd5a --- /dev/null +++ b/srcpkgs/text-engine-demo @@ -0,0 +1 @@ +text-engine \ No newline at end of file diff --git a/srcpkgs/text-engine-devel b/srcpkgs/text-engine-devel new file mode 120000 index 00000000000..272d32cfd5a --- /dev/null +++ b/srcpkgs/text-engine-devel @@ -0,0 +1 @@ +text-engine \ No newline at end of file diff --git a/srcpkgs/text-engine/patches/meson-set-soversion.patch b/srcpkgs/text-engine/patches/meson-set-soversion.patch new file mode 100644 index 00000000000..6935d0c0b9e --- /dev/null +++ b/srcpkgs/text-engine/patches/meson-set-soversion.patch @@ -0,0 +1,23 @@ +From: Jeremy Bicha +Date: Wed, 20 Apr 2022 12:39:45 -0400 +Subject: meson: set soversion + +This sets up the symlinked shared library as expected + +https://github.com/mjakeman/text-engine/pull/9 +--- + src/meson.build | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/meson.build b/src/meson.build +index faff7ad..92e0a0b 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -47,6 +47,7 @@ text_engine_deps = [ + text_engine_lib = shared_library('text-engine-' + api_version, + text_engine_sources, + dependencies: text_engine_deps, ++ soversion: 0, + install: true, + ) + diff --git a/srcpkgs/text-engine/template b/srcpkgs/text-engine/template new file mode 100644 index 00000000000..fe201dfd92f --- /dev/null +++ b/srcpkgs/text-engine/template @@ -0,0 +1,31 @@ +# Template file for 'text-engine' +pkgname=text-engine +version=0.1.1 +revision=1 +build_style=meson +hostmakedepends="pkg-config glib-devel" +makedepends="libadwaita-devel" +short_desc="Lightweight rich text framework for GTK" +maintainer="chrysos349 " +license="LGPL-2.1-or-later" +homepage="https://github.com/mjakeman/text-engine" +distfiles="https://github.com/mjakeman/text-engine/archive/v${version}.tar.gz" +checksum=cf540d2c0150a46e8ec81c4532550357707c5d07b6116dc52e3869b1902f515f + +text-engine-devel_package() { + depends="gtk4-devel ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove "usr/lib/*.so" + vmove usr/include + vmove usr/lib/pkgconfig + } +} + +text-engine-demo_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - demonstration application" + pkg_install() { + vmove usr/bin/text-engine-demo + } +}