2025-09-01 05:04:30 +02:00
|
|
|
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
|
|
|
|
|
# Contributor: Alex Potapenko <opotapenko@gmail.com>
|
|
|
|
|
|
|
|
|
|
pkgname=calibre-bin
|
2025-09-26 17:18:44 +02:00
|
|
|
pkgver=8.11.1
|
|
|
|
|
pkgrel=1
|
2025-09-07 16:10:14 +02:00
|
|
|
pkgdesc="Ebook management application"
|
2025-09-01 05:04:30 +02:00
|
|
|
arch=(
|
|
|
|
|
x86_64
|
|
|
|
|
)
|
2025-09-26 17:18:44 +02:00
|
|
|
url="https://download.calibre-ebook.com"
|
2025-09-01 05:04:30 +02:00
|
|
|
license=(
|
|
|
|
|
GPL-3.0-only
|
|
|
|
|
)
|
|
|
|
|
provides=(
|
2025-09-07 16:10:14 +02:00
|
|
|
"calibre=$pkgver"
|
2025-09-01 05:04:30 +02:00
|
|
|
)
|
|
|
|
|
conflicts=(
|
|
|
|
|
calibre
|
|
|
|
|
calibre-git
|
|
|
|
|
)
|
2025-09-26 17:18:44 +02:00
|
|
|
options=('!strip')
|
2025-09-01 05:04:30 +02:00
|
|
|
# Sources
|
|
|
|
|
# Since there doesn't seem to be a simple way to generate desktop
|
|
|
|
|
# integration files without building calibre from source,
|
|
|
|
|
# we'll provide them here
|
|
|
|
|
source=(
|
|
|
|
|
share.tar.xz
|
2025-09-26 17:18:44 +02:00
|
|
|
"${url}/${pkgver}/calibre-${pkgver}-x86_64.txz"
|
2025-09-01 05:04:30 +02:00
|
|
|
)
|
|
|
|
|
b2sums=('e4f5fae13053d05538c96d3be4ddb57bc5d98ecb365036a1afe4cf41e7c9e902ca039b4c7dbb7c1f8f45e53951633e98e1f36f29a192d0ea536067c7c6822512'
|
2025-09-26 17:18:44 +02:00
|
|
|
'5d5e1fae8326ee8dc9ccaf88cc751600f5b53a9fdc391131a5b4e4759ba5715bf3e14088c96177d7e5689088b4215c722883924a1b751c7cc9875233aea232c5')
|
2025-09-01 05:04:30 +02:00
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
|
# don't want the sources symlinks in the final tarball
|
|
|
|
|
for src in "${source[@]##*/}"; do
|
2025-09-26 17:18:44 +02:00
|
|
|
if [[ -L "${srcdir}/${src}" ]]; then
|
|
|
|
|
rm "${srcdir}/${src}"
|
2025-09-01 05:04:30 +02:00
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
2025-09-07 16:10:14 +02:00
|
|
|
depends+=(
|
|
|
|
|
alsa-lib
|
|
|
|
|
bash
|
|
|
|
|
brotli
|
|
|
|
|
bzip2
|
|
|
|
|
chmlib
|
|
|
|
|
dbus
|
|
|
|
|
expat
|
|
|
|
|
ffmpeg
|
|
|
|
|
flite
|
|
|
|
|
fontconfig
|
|
|
|
|
freetype2
|
|
|
|
|
gcc-libs
|
|
|
|
|
glib2
|
|
|
|
|
glibc
|
|
|
|
|
hicolor-icon-theme
|
|
|
|
|
hunspell
|
|
|
|
|
hyphen
|
|
|
|
|
jbigkit
|
2025-09-26 17:18:44 +02:00
|
|
|
lcms2
|
2025-09-07 16:10:14 +02:00
|
|
|
libdeflate
|
|
|
|
|
libdrm
|
|
|
|
|
libffi
|
|
|
|
|
libglvnd
|
|
|
|
|
libgpg-error
|
|
|
|
|
libice
|
|
|
|
|
libinput
|
|
|
|
|
libjpeg-turbo
|
|
|
|
|
libmtp
|
|
|
|
|
libpng
|
|
|
|
|
libpulse
|
|
|
|
|
libsm
|
|
|
|
|
libstemmer
|
|
|
|
|
libtiff
|
|
|
|
|
libtirpc
|
|
|
|
|
libunrar
|
|
|
|
|
libusb
|
|
|
|
|
libwebp
|
|
|
|
|
libx11
|
|
|
|
|
libxcb
|
|
|
|
|
libxcomposite
|
|
|
|
|
libxcrypt-compat
|
|
|
|
|
libxdamage
|
|
|
|
|
libxext
|
|
|
|
|
libxfixes
|
|
|
|
|
libxkbcommon
|
|
|
|
|
libxkbcommon-x11
|
|
|
|
|
libxkbfile
|
2025-09-26 17:18:44 +02:00
|
|
|
libxml2
|
2025-09-07 16:10:14 +02:00
|
|
|
libxrandr
|
|
|
|
|
libxslt
|
|
|
|
|
libxtst
|
|
|
|
|
mesa
|
|
|
|
|
mtdev
|
|
|
|
|
ncurses
|
|
|
|
|
nspr
|
|
|
|
|
nss
|
|
|
|
|
openjpeg2
|
|
|
|
|
openssl
|
|
|
|
|
pcre2
|
|
|
|
|
podofo
|
2025-09-26 17:18:44 +02:00
|
|
|
poppler
|
2025-09-07 16:10:14 +02:00
|
|
|
python
|
|
|
|
|
qt6-base
|
|
|
|
|
qt6-declarative
|
|
|
|
|
qt6-multimedia
|
|
|
|
|
qt6-positioning
|
|
|
|
|
qt6-sensors
|
|
|
|
|
qt6-speech
|
|
|
|
|
qt6-svg
|
|
|
|
|
qt6-wayland
|
|
|
|
|
qt6-webchannel
|
|
|
|
|
qt6-webengine
|
|
|
|
|
readline
|
|
|
|
|
sqlite
|
|
|
|
|
systemd-libs
|
|
|
|
|
uchardet
|
|
|
|
|
util-linux-libs
|
|
|
|
|
wayland
|
|
|
|
|
xcb-util-cursor
|
|
|
|
|
xcb-util-image
|
|
|
|
|
xcb-util-keysyms
|
|
|
|
|
xcb-util-renderutil
|
|
|
|
|
xcb-util-wm
|
|
|
|
|
xz
|
|
|
|
|
zlib
|
|
|
|
|
zstd
|
|
|
|
|
)
|
2025-09-01 05:04:30 +02:00
|
|
|
# Creating needed directories
|
2025-09-26 17:18:44 +02:00
|
|
|
install -dm0755 "${pkgdir}/usr/bin"
|
|
|
|
|
install -dm0755 "${pkgdir}/opt/calibre"
|
2025-09-01 05:04:30 +02:00
|
|
|
|
|
|
|
|
# Package calibre
|
2025-09-26 17:18:44 +02:00
|
|
|
cp -af "${srcdir}/"* "${pkgdir}/opt/calibre"
|
|
|
|
|
mv -f "${pkgdir}/opt/calibre/share" "${pkgdir}/usr"
|
|
|
|
|
chmod +rx "${pkgdir}/opt/calibre/resources/locales"
|
2025-09-01 05:04:30 +02:00
|
|
|
# Create symlinks in /usr/bin
|
2025-09-07 16:10:14 +02:00
|
|
|
#shellcheck disable=SC2044
|
2025-09-26 17:18:44 +02:00
|
|
|
for f in $(find "${pkgdir}/opt/calibre" -maxdepth 1 -type f -printf "%f\n"); do
|
|
|
|
|
ln -s "/opt/calibre/$f" "${pkgdir}/usr/bin/$f"
|
2025-09-01 05:04:30 +02:00
|
|
|
done
|
|
|
|
|
}
|