pkg install, add link if package no have scripts
This commit is contained in:
36
assets/var/gnu/libreoffice/core.md
Normal file
36
assets/var/gnu/libreoffice/core.md
Normal file
@ -0,0 +1,36 @@
|
||||
libreoffice/core
|
||||
=
|
||||
https://github.com/LibreOffice/core.git
|
||||
|
||||
``` sh *** build ***
|
||||
/pkg/gnu/perl/bin/cpan Archive::Zip
|
||||
pkg enable openjdk17 2>/dev/null || true
|
||||
/pkg/gnu/python3/bin/pip3 install --root-user-action=ignore meson
|
||||
|
||||
echo "--with-parallelism=$(nproc)" >> autogen.input
|
||||
echo "--prefix=$pkgpath" >> autogen.input
|
||||
|
||||
rm -f /pkg/gnu/libreoffice/core/src/autogen.lastrun
|
||||
chown -R aeropkg:aeropkg /pkg/gnu/libreoffice/core
|
||||
mkdir -p /pkg/gnu/libreoffice/core
|
||||
chown -R aeropkg:aeropkg /pkg/gnu/libreoffice/core
|
||||
chmod -R o+rX /pkg/gnu/nss /pkg/gnu/nspr /pkg/gnu/python3 /pkg/gnu/perl
|
||||
|
||||
su -m aeropkg -c "
|
||||
cd /pkg/gnu/libreoffice/core/src
|
||||
./autogen.sh
|
||||
"
|
||||
|
||||
su -m aeropkg -c "
|
||||
cd /pkg/gnu/libreoffice/core/src
|
||||
make
|
||||
"
|
||||
|
||||
cd /pkg/gnu/libreoffice/core/src
|
||||
make install
|
||||
```
|
||||
|
||||
``` cfg *** build deps ***
|
||||
icu
|
||||
```
|
||||
|
||||
91
assets/var/gnu/libreoffice/core/.pkgdata.patch/autogen.input
Normal file
91
assets/var/gnu/libreoffice/core/.pkgdata.patch/autogen.input
Normal file
@ -0,0 +1,91 @@
|
||||
--with-system-icu
|
||||
--enable-release-build
|
||||
--enable-optimized
|
||||
|
||||
# ===== Только headless, без GUI =====
|
||||
--disable-gui
|
||||
--disable-gtk3
|
||||
--disable-qt5
|
||||
--disable-qt6
|
||||
--disable-kf5
|
||||
--disable-kf6
|
||||
--disable-cairo-canvas
|
||||
--disable-dbus
|
||||
--disable-avahi
|
||||
--disable-sdremote
|
||||
--disable-sdremote-bluetooth
|
||||
--disable-gstreamer-1-0
|
||||
--disable-dconf
|
||||
--disable-avmedia
|
||||
|
||||
# ===== Без языков программирования =====
|
||||
--without-java
|
||||
--without-dotnet
|
||||
#--disable-scripting # Work in progress, опции пока не поддерживаются адекватно
|
||||
#--disable-scripting-beanshell
|
||||
#--disable-scripting-javascript
|
||||
--enable-python=system
|
||||
|
||||
# ===== Без баз данных =====
|
||||
#--disable-database-connectivity #work in progress пока не работает
|
||||
--disable-postgresql-sdbc
|
||||
--disable-mariadb-sdbc
|
||||
--disable-firebird-sdbc
|
||||
--disable-report-builder
|
||||
--disable-coinmp
|
||||
|
||||
# ===== Без расширений и SDK =====
|
||||
--disable-odk
|
||||
#--disable-extensions # Work in progress, пока не собирается с ней
|
||||
--disable-extension-integration
|
||||
--disable-extension-update
|
||||
--disable-epm
|
||||
|
||||
# ===== Без отладки и crash-репортов =====
|
||||
--disable-breakpad
|
||||
--disable-crashdump
|
||||
--disable-fuzzers
|
||||
--disable-cve-tests
|
||||
--disable-nan-tests
|
||||
|
||||
# ===== Без онлайн-функций =====
|
||||
--disable-online-update
|
||||
--disable-online-update-mar
|
||||
--without-webdav
|
||||
--disable-ldap
|
||||
--disable-opencl
|
||||
--disable-opengl
|
||||
--disable-skia
|
||||
|
||||
# ===== Без Kerberos/GSSAPI =====
|
||||
--without-krb5
|
||||
--without-gssapi
|
||||
|
||||
# ===== Без документации и шрифтов =====
|
||||
--without-helppack-integration
|
||||
--without-help
|
||||
--without-fonts
|
||||
--without-myspell-dicts
|
||||
--with-templates=no
|
||||
--with-galleries=no
|
||||
|
||||
# ===== Минимальные темы (или вообще без тем) =====
|
||||
--with-theme=no
|
||||
|
||||
# ===== Без лишних библиотек =====
|
||||
--disable-zxing
|
||||
--disable-gpgmepp
|
||||
--disable-lotuswordpro
|
||||
--disable-librelogo
|
||||
--disable-poppler
|
||||
--disable-pdfimport
|
||||
|
||||
# ===== Только английский =====
|
||||
--with-lang=en-US
|
||||
|
||||
# ===== Без пакетов =====
|
||||
--without-package-format
|
||||
|
||||
# ===== Ускорение сборки =====
|
||||
--disable-dependency-tracking
|
||||
--disable-pch
|
||||
3
assets/var/gnu/libreoffice/cups.md
Normal file
3
assets/var/gnu/libreoffice/cups.md
Normal file
@ -0,0 +1,3 @@
|
||||
libreoffice/cups
|
||||
=
|
||||
|
||||
23
assets/var/gnu/libreoffice/cups/.pkgdata/lib/cups/filter/office-to-pdf
Executable file
23
assets/var/gnu/libreoffice/cups/.pkgdata/lib/cups/filter/office-to-pdf
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
# Универсальный фильтр CUPS для конвертации офисных документов в PDF через LibreOffice
|
||||
|
||||
LO_BIN="/pkg/gnu/libreoffice/core/lib/libreoffice/program/soffice"
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
|
||||
INPUT_FILE="$6"
|
||||
OUTPUT_FILE="$TEMP_DIR/output.pdf"
|
||||
|
||||
# Конвертация в PDF. LibreOffice сам определит формат по содержимому файла.
|
||||
# Для электронных таблиц (xls/ods) иногда полезно явно указать фильтр,
|
||||
# но обычно --convert-to pdf работает автоматически и корректно.
|
||||
"$LO_BIN" --headless --invisible --convert-to pdf --outdir "$TEMP_DIR" "$INPUT_FILE" > /dev/null 2>&1
|
||||
|
||||
if [ -f "$OUTPUT_FILE" ]; then
|
||||
cat "$OUTPUT_FILE"
|
||||
rm -rf "$TEMP_DIR"
|
||||
exit 0
|
||||
else
|
||||
echo "ERROR: LibreOffice conversion failed for $INPUT_FILE" >&2
|
||||
rm -rf "$TEMP_DIR"
|
||||
exit 1
|
||||
fi
|
||||
@ -0,0 +1,14 @@
|
||||
# Форматы Microsoft Office
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document application/pdf 100 office-to-pdf
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/pdf 100 office-to-pdf
|
||||
application/vnd.ms-word application/pdf 100 office-to-pdf
|
||||
application/vnd.ms-excel application/pdf 100 office-to-pdf
|
||||
|
||||
# Форматы OpenDocument (ODF)
|
||||
application/vnd.oasis.opendocument.text application/pdf 100 office-to-pdf
|
||||
application/vnd.oasis.opendocument.spreadsheet application/pdf 100 office-to-pdf
|
||||
application/vnd.oasis.opendocument.presentation application/pdf 100 office-to-pdf
|
||||
|
||||
# Текстовые и другие форматы
|
||||
application/rtf application/pdf 100 office-to-pdf
|
||||
text/csv application/pdf 100 office-to-pdf
|
||||
Reference in New Issue
Block a user