mirror of
https://github.com/archlinux/aur.git
synced 2026-02-09 06:38:44 +01:00
stirling-pdf-bin: 0.45.2-2
This commit is contained in:
parent
6cb83b9b44
commit
11a80eab64
7 changed files with 76 additions and 34 deletions
29
.SRCINFO
29
.SRCINFO
|
|
@ -1,18 +1,22 @@
|
|||
pkgbase = stirling-pdf-bin
|
||||
pkgdesc = Locally hosted web application that allows you to perform various operations on PDF files
|
||||
pkgver = 0.45.2
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://github.com/Stirling-Tools/Stirling-PDF
|
||||
arch = any
|
||||
license = GPL-3.0-or-later
|
||||
depends = java-runtime-headless>=17
|
||||
depends = libreoffice-fresh
|
||||
depends = ocrmypdf
|
||||
depends = fontconfig
|
||||
depends = java-runtime-headless>=21
|
||||
depends = libreoffice
|
||||
depends = pngquant
|
||||
depends = poppler
|
||||
depends = python-opencv
|
||||
depends = python-pdf2image
|
||||
depends = python-pillow
|
||||
depends = python-unoserver
|
||||
depends = python-weasyprint
|
||||
depends = qpdf
|
||||
depends = tesseract-data-eng
|
||||
depends = unoconv
|
||||
depends = unpaper
|
||||
optdepends = jbig2enc: for certain OCR functionality
|
||||
optdepends = tesseract-data-afr: for afr language OCR
|
||||
optdepends = tesseract-data-amh: for amh language OCR
|
||||
|
|
@ -43,7 +47,6 @@ pkgbase = stirling-pdf-bin
|
|||
optdepends = tesseract-data-div: for div language OCR
|
||||
optdepends = tesseract-data-dzo: for dzo language OCR
|
||||
optdepends = tesseract-data-ell: for ell language OCR
|
||||
optdepends = tesseract-data-eng: for eng language OCR
|
||||
optdepends = tesseract-data-enm: for enm language OCR
|
||||
optdepends = tesseract-data-epo: for epo language OCR
|
||||
optdepends = tesseract-data-equ: for equ language OCR
|
||||
|
|
@ -148,14 +151,18 @@ pkgbase = stirling-pdf-bin
|
|||
noextract = stirling-pdf-0.45.2.jar
|
||||
backup = etc/stirling-pdf/stirling-pdf.env
|
||||
source = stirling-pdf-0.45.2.jar::https://github.com/Stirling-Tools/Stirling-PDF/releases/download/v0.45.2/Stirling-PDF-with-login.jar
|
||||
source = stirling-pdf-0.45.2.tar.gz::https://github.com/Stirling-Tools/Stirling-PDF/archive/refs/tags/v0.45.2.tar.gz
|
||||
source = stirling-pdf.env
|
||||
source = stirling-pdf.service
|
||||
source = stirling-pdf.sh
|
||||
source = stirling-pdf.sysusers
|
||||
source = stirling-pdf.tmpfiles
|
||||
sha256sums = 41a33737c39a6ffbc8c54224e2068b2ca53b100bfa29d90cbfbad3f9d41616d3
|
||||
sha256sums = 21eb87b52d8502b10b339f9d2267530fcaa73f849317ad25102b6bd489ce9280
|
||||
sha256sums = 4abb93db9f1f000ddb3d1f25dbda9f207a3f8fd8a783c264115271e36662e9f3
|
||||
sha256sums = 0f8b3d727955536ae3ed98e8aeccb8f073e4c97c36a95de595624a71ea5fdd11
|
||||
sha256sums = 31eccb63f2465c04cbca6f73e33e8e91390063e69e5d9a43339c05197126cdaa
|
||||
sha256sums = 015a3429410fe6f89476b4330beacb489f79988c9200268d27403f8416eede82
|
||||
sha256sums = d395992889fdf60de430509cd5866fc4606548aa1ba8f134b7e6bd4e29f293c9
|
||||
sha256sums = d717c3d0d7165f33d12e6230e2ad87f42d2fc26debe3c2a5c516d2e754c93203
|
||||
sha256sums = cc15280066c4e188edb30596fb02eabf46e5335642a4202366408cc36208e8f0
|
||||
sha256sums = efdf233d59cf82bc331e3ea85e912e7f534ed0d821674e232e3fc827f699ef43
|
||||
sha256sums = 554fbc114c32f4b81fe3b8199e936881e26b5649098c495acfd4cd77eefd2612
|
||||
|
||||
pkgname = stirling-pdf-bin
|
||||
|
|
|
|||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
|||
/pkg
|
||||
/src
|
||||
*.pkg.tar.*
|
||||
*.jar
|
||||
*.pkg.tar.*
|
||||
*.tar.gz
|
||||
|
|
|
|||
56
PKGBUILD
56
PKGBUILD
|
|
@ -1,37 +1,55 @@
|
|||
# Maintainer: devome <evinedeng@hotmail.com>
|
||||
|
||||
_pkgname="stirling-pdf"
|
||||
_reponame=Stirling-PDF
|
||||
_pkgname="${_reponame,,}"
|
||||
pkgname="${_pkgname}-bin"
|
||||
pkgver=0.45.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Locally hosted web application that allows you to perform various operations on PDF files"
|
||||
arch=("any")
|
||||
url="https://github.com/Stirling-Tools/Stirling-PDF"
|
||||
url="https://github.com/Stirling-Tools/${_reponame}"
|
||||
provides=("${_pkgname}")
|
||||
conflicts=("${_pkgname}")
|
||||
license=("GPL-3.0-or-later")
|
||||
backup=("etc/${_pkgname}/${_pkgname}.env")
|
||||
depends=("java-runtime-headless>=17" "libreoffice-fresh" "ocrmypdf" "pngquant" "python-opencv" "tesseract-data-eng" "unoconv" "unpaper")
|
||||
depends=(
|
||||
"fontconfig"
|
||||
"java-runtime-headless>=21"
|
||||
"libreoffice"
|
||||
"pngquant"
|
||||
"poppler"
|
||||
"python-opencv"
|
||||
"python-pdf2image"
|
||||
"python-pillow"
|
||||
"python-unoserver"
|
||||
"python-weasyprint"
|
||||
"qpdf"
|
||||
"tesseract-data-eng"
|
||||
)
|
||||
optdepends=("jbig2enc: for certain OCR functionality")
|
||||
source=("${_pkgname}-${pkgver}.jar::${url}/releases/download/v${pkgver}/Stirling-PDF-with-login.jar"
|
||||
source=("${_pkgname}-${pkgver}.jar::${url}/releases/download/v${pkgver}/${_reponame}-with-login.jar"
|
||||
"${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
|
||||
"${_pkgname}.env"
|
||||
"${_pkgname}.service"
|
||||
"${_pkgname}.sh"
|
||||
"${_pkgname}.sysusers"
|
||||
"${_pkgname}.tmpfiles")
|
||||
sha256sums=('41a33737c39a6ffbc8c54224e2068b2ca53b100bfa29d90cbfbad3f9d41616d3'
|
||||
'21eb87b52d8502b10b339f9d2267530fcaa73f849317ad25102b6bd489ce9280'
|
||||
'4abb93db9f1f000ddb3d1f25dbda9f207a3f8fd8a783c264115271e36662e9f3'
|
||||
'0f8b3d727955536ae3ed98e8aeccb8f073e4c97c36a95de595624a71ea5fdd11'
|
||||
sha256sums=('31eccb63f2465c04cbca6f73e33e8e91390063e69e5d9a43339c05197126cdaa'
|
||||
'015a3429410fe6f89476b4330beacb489f79988c9200268d27403f8416eede82'
|
||||
'd395992889fdf60de430509cd5866fc4606548aa1ba8f134b7e6bd4e29f293c9'
|
||||
'd717c3d0d7165f33d12e6230e2ad87f42d2fc26debe3c2a5c516d2e754c93203'
|
||||
'cc15280066c4e188edb30596fb02eabf46e5335642a4202366408cc36208e8f0'
|
||||
'efdf233d59cf82bc331e3ea85e912e7f534ed0d821674e232e3fc827f699ef43'
|
||||
'554fbc114c32f4b81fe3b8199e936881e26b5649098c495acfd4cd77eefd2612')
|
||||
noextract=("${_pkgname}-${pkgver}.jar")
|
||||
_langs=(afr amh ara asm aze aze_cyrl bel ben bod bos bre bul cat ceb ces
|
||||
chi_sim chi_sim_vert chi_tra chi_tra_vert chr cos cym dan dan_frak deu deu_frak div dzo ell eng enm epo
|
||||
equ est eus fao fas fil fin fra frk frm fry gla gle glg grc guj hat heb
|
||||
hin hrv hun hye iku ind isl ita ita_old jav jpn jpn_vert kan kat kat_old kaz khm
|
||||
kir kmr kor kor_vert lao lat lav lit ltz mal mar mkd mlt mon mri msa
|
||||
mya nep nld nor oci ori osd pan pol por pus que ron rus san sin slk
|
||||
slk_frak slv snd spa spa_old sqi srp srp_latn sun swa swe syr tam tat
|
||||
tel tgk tgl tha tir ton tur uig ukr urd uzb uzb_cyrl vie yid yor)
|
||||
|
||||
_langs=(afr amh ara asm aze aze_cyrl bel ben bod bos bre bul cat ceb ces chi_sim chi_sim_vert
|
||||
chi_tra chi_tra_vert chr cos cym dan dan_frak deu deu_frak div dzo ell enm epo equ
|
||||
est eus fao fas fil fin fra frk frm fry gla gle glg grc guj hat heb hin hrv hun hye
|
||||
iku ind isl ita ita_old jav jpn jpn_vert kan kat kat_old kaz khm kir kmr kor kor_vert
|
||||
lao lat lav lit ltz mal mar mkd mlt mon mri msa mya nep nld nor oci ori osd pan pol
|
||||
por pus que ron rus san sin slk slk_frak slv snd spa spa_old sqi srp srp_latn sun swa
|
||||
swe syr tam tat tel tgk tgl tha tir ton tur uig ukr urd uzb uzb_cyrl vie yid yor)
|
||||
|
||||
for lang in ${_langs[@]}; do
|
||||
optdepends+=("tesseract-data-${lang}: for ${lang} language OCR")
|
||||
|
|
@ -41,6 +59,10 @@ package() {
|
|||
install -Dm644 "${_pkgname}-${pkgver}.jar" "${pkgdir}/usr/share/java/${_pkgname}.jar"
|
||||
install -Dm644 "${_pkgname}.env" "${pkgdir}/etc/${_pkgname}/${_pkgname}.env"
|
||||
install -Dm644 "${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
|
||||
install -Dm755 "${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
|
||||
install -Dm644 "${_pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${_pkgname}.conf"
|
||||
install -Dm644 "${_pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${_pkgname}.conf"
|
||||
|
||||
cd "${_reponame}-${pkgver}/src/main/resources"
|
||||
install -Dm644 static/fonts/*.ttf -t "${pkgdir}/usr/share/fonts/${_pkgname}"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# See https://stirlingtools.com/docs/Advanced%20Configuration/How%20to%20add%20configurations for more information
|
||||
# See https://docs.stirlingpdf.com/Advanced%20Configuration/How%20to%20add%20configurations for more information
|
||||
# If you want to override with environment parameter 'security.initialLogin.username' parameter naming SECURITY_INITIALLOGIN_USERNAME
|
||||
|
||||
# server.host in settings
|
||||
|
|
@ -25,4 +25,4 @@ SECURITY_INITIALLOGIN_USERNAME=admin
|
|||
# security.initialLogin.password in settings, initial password for the first login
|
||||
SECURITY_INITIALLOGIN_PASSWORD=stirling
|
||||
|
||||
# Please add other environment variables according to this link on your own: https://stirlingtools.com/docs/Advanced%20Configuration/How%20to%20add%20configurations
|
||||
# Please add other environment variables according to this link on your own: https://docs.stirlingpdf.com/Advanced%20Configuration/How%20to%20add%20configurations
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description = Stirling-PDF Service
|
||||
Documentation = https://stirlingtools.com/docs/Overview/What%20is%20Stirling-PDF
|
||||
Documentation = https://docs.stirlingpdf.com
|
||||
Wants = network-online.target
|
||||
After = network-online.target
|
||||
|
||||
|
|
@ -10,7 +10,15 @@ Group = stirling-pdf
|
|||
Restart = on-failure
|
||||
WorkingDirectory = /var/lib/stirling-pdf
|
||||
EnvironmentFile = -/etc/stirling-pdf/stirling-pdf.env
|
||||
ExecStart = /usr/bin/java -jar -Xmx512m /usr/share/java/stirling-pdf.jar
|
||||
Environment = JAVA_BASE_OPTS="-XX:+UnlockExperimentalVMOptions -XX:MaxRAMPercentage=75 -XX:InitiatingHeapOccupancyPercent=20 -XX:+G1PeriodicGCInvokesConcurrent -XX:G1PeriodicGCInterval=10000 -XX:+UseStringDeduplication -XX:G1PeriodicGCSystemLoadThreshold=70"
|
||||
Environment = UNO_PATH=/usr/lib/libreoffice/program
|
||||
Environment = URE_BOOTSTRAP=file:///usr/lib/libreoffice/program/fundamentalrc
|
||||
ExecStart = /usr/bin/stirling-pdf
|
||||
ExecStop = /usr/bin/killall -9 soffice.bin
|
||||
KillMode = control-group
|
||||
TimeoutStopSec = 10
|
||||
SuccessExitStatus = 0 143
|
||||
RestartForceExitStatus = 0 143
|
||||
ProtectSystem = yes
|
||||
ProtectHome = yes
|
||||
PrivateTmp = yes
|
||||
|
|
|
|||
4
stirling-pdf.sh
Normal file
4
stirling-pdf.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
/usr/bin/unoserver --port 2003 --interface 127.0.0.1 &
|
||||
/usr/bin/java -jar -Xmx512m /usr/share/java/stirling-pdf.jar
|
||||
|
|
@ -1 +1 @@
|
|||
u "stirling-pdf" - "Stirling-PDF" - -
|
||||
u "stirling-pdf" - "Stirling PDF" - -
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue