New package: libeot-0.01

This commit is contained in:
Đoàn Trần Công Danh 2025-08-12 21:24:18 +07:00
parent 545d620bfa
commit 76916fcd36
4 changed files with 35 additions and 0 deletions

View file

@ -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

1
srcpkgs/libeot-devel Symbolic link
View file

@ -0,0 +1 @@
libeot

View file

@ -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)

22
srcpkgs/libeot/template Normal file
View file

@ -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 <congdanhqx@gmail.com>"
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"
}
}