From 76916fcd36cebeac9466c6beec2f8b58290d6585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 12 Aug 2025 21:24:18 +0700 Subject: [PATCH] New package: libeot-0.01 --- common/shlibs | 1 + srcpkgs/libeot-devel | 1 + srcpkgs/libeot/patches/ubsan.patch.0 | 11 +++++++++++ srcpkgs/libeot/template | 22 ++++++++++++++++++++++ 4 files changed, 35 insertions(+) create mode 120000 srcpkgs/libeot-devel create mode 100644 srcpkgs/libeot/patches/ubsan.patch.0 create mode 100644 srcpkgs/libeot/template diff --git a/common/shlibs b/common/shlibs index 163609ff625..9d2689471e7 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4549,3 +4549,4 @@ libdatovka.so.8 libdatovka-0.7.0_1 libhyprutils.so.6 hyprutils-0.7.1_1 libblake3.so.0 libblake3-1.8.2_1 libsexp.so.1 sfsexp-1.4.1 +libeot.so.0 libeot-0.01_1 diff --git a/srcpkgs/libeot-devel b/srcpkgs/libeot-devel new file mode 120000 index 00000000000..08108926783 --- /dev/null +++ b/srcpkgs/libeot-devel @@ -0,0 +1 @@ +libeot \ No newline at end of file diff --git a/srcpkgs/libeot/patches/ubsan.patch.0 b/srcpkgs/libeot/patches/ubsan.patch.0 new file mode 100644 index 00000000000..9ab28a54c33 --- /dev/null +++ b/srcpkgs/libeot/patches/ubsan.patch.0 @@ -0,0 +1,11 @@ +--- a/src/EOT.c ++++ b/src/EOT.c +@@ -12,7 +12,7 @@ + + uint32_t EOTreadU32LE(const uint8_t *bytes) + { +- return bytes[0] | (bytes[1] << 8) | (bytes[2] << 16) | (bytes[3] << 24); ++ return ((uint32_t)bytes[0]) | (((uint32_t)bytes[1]) << 8) | (((uint32_t)bytes[2]) << 16) | (((uint32_t)bytes[3]) << 24); + } + + uint16_t EOTreadU16LE(const uint8_t *bytes) diff --git a/srcpkgs/libeot/template b/srcpkgs/libeot/template new file mode 100644 index 00000000000..9ac8724ecff --- /dev/null +++ b/srcpkgs/libeot/template @@ -0,0 +1,22 @@ +# Template file for 'libeot' +pkgname=libeot +version=0.01 +revision=1 +build_style=gnu-configure +short_desc="Library for parsing/converting Embedded OpenType" +maintainer="Đoàn Trần Công Danh " +license="Apache-2.0" +homepage="https://github.com/umanwizard/libeot" +distfiles="https://dev-www.libreoffice.org/src/libeot-${version}.tar.bz2" +checksum=cf5091fa8e7dcdbe667335eb90a2cfdd0a3fe8f8c7c8d1ece44d9d055736a06a + +libeot-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.la" + vmove "usr/lib/*.so" + } +}