upgpkg: calibre-bin-8.10.0-2: clarify it is a -bin package

This commit is contained in:
Christian Schendel 2025-09-07 16:10:14 +02:00
parent 9151330d9c
commit bd8c9c6bb5
Signed by: doppelhelix
GPG key ID: 5874D2437CD5BBB3
2 changed files with 108 additions and 103 deletions

View file

@ -1,10 +1,20 @@
pkgbase = calibre-bin
pkgdesc = Official desktop version Calibre
pkgver = 8.9.0
pkgrel = 1
pkgdesc = Ebook management application
pkgver = 8.10.0
pkgrel = 2
url = https://github.com/kovidgoyal/calibre
arch = x86_64
license = GPL-3.0-only
provides = calibre=8.10.0
conflicts = calibre
conflicts = calibre-git
options = !emptydirs
source = share.tar.xz
source = https://github.com/kovidgoyal/calibre/releases/download/v8.10.0/calibre-8.10.0-x86_64.txz
b2sums = e4f5fae13053d05538c96d3be4ddb57bc5d98ecb365036a1afe4cf41e7c9e902ca039b4c7dbb7c1f8f45e53951633e98e1f36f29a192d0ea536067c7c6822512
b2sums = 4baa625683b7e6ecb6ba043c4d68d131c13a6a83daf0dfe5de7a4f7aace9da35025f19af47d75394066bcd23bb16b7b69af38ca5c399455161741085c0211b68
pkgname = calibre-bin
depends = alsa-lib
depends = bash
depends = brotli
@ -88,12 +98,3 @@ pkgbase = calibre-bin
depends = xz
depends = zlib
depends = zstd
provides = calibre
conflicts = calibre
conflicts = calibre-git
source = share.tar.xz
source = https://github.com/kovidgoyal/calibre/releases/download/v8.9.0/calibre-8.9.0-x86_64.txz
b2sums = e4f5fae13053d05538c96d3be4ddb57bc5d98ecb365036a1afe4cf41e7c9e902ca039b4c7dbb7c1f8f45e53951633e98e1f36f29a192d0ea536067c7c6822512
b2sums = 2752fe1ba2ec13b761ceedfa710999f3ab351f6a196e5bbb2f868e916871aa5e10a9500f46a9420a6ee2bcd4db8f3aa28c21c48031518c35efcd4d2c0b77c922
pkgname = calibre-bin

View file

@ -2,9 +2,9 @@
# Contributor: Alex Potapenko <opotapenko@gmail.com>
pkgname=calibre-bin
pkgver=8.9.0
pkgrel=1
pkgdesc="Official desktop version Calibre"
pkgver=8.10.0
pkgrel=2
pkgdesc="Ebook management application"
arch=(
x86_64
)
@ -12,7 +12,38 @@ url="https://github.com/kovidgoyal/calibre"
license=(
GPL-3.0-only
)
depends=(
provides=(
"calibre=$pkgver"
)
conflicts=(
calibre
calibre-git
)
options=(
'!emptydirs'
)
# 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
"$url/releases/download/v${pkgver}/calibre-${pkgver}-x86_64.txz"
)
b2sums=('e4f5fae13053d05538c96d3be4ddb57bc5d98ecb365036a1afe4cf41e7c9e902ca039b4c7dbb7c1f8f45e53951633e98e1f36f29a192d0ea536067c7c6822512'
'4baa625683b7e6ecb6ba043c4d68d131c13a6a83daf0dfe5de7a4f7aace9da35025f19af47d75394066bcd23bb16b7b69af38ca5c399455161741085c0211b68')
prepare() {
# don't want the sources symlinks in the final tarball
for src in "${source[@]##*/}"; do
if [[ -L "$srcdir/$src" ]]; then
rm "$srcdir/$src"
fi
done
}
package() {
depends+=(
alsa-lib
bash
brotli
@ -97,34 +128,6 @@ depends=(
zlib
zstd
)
provides=(
calibre
)
conflicts=(
calibre
calibre-git
)
# 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
"$url/releases/download/v${pkgver}/calibre-${pkgver}-x86_64.txz"
)
b2sums=('e4f5fae13053d05538c96d3be4ddb57bc5d98ecb365036a1afe4cf41e7c9e902ca039b4c7dbb7c1f8f45e53951633e98e1f36f29a192d0ea536067c7c6822512'
'2752fe1ba2ec13b761ceedfa710999f3ab351f6a196e5bbb2f868e916871aa5e10a9500f46a9420a6ee2bcd4db8f3aa28c21c48031518c35efcd4d2c0b77c922')
prepare() {
# don't want the sources symlinks in the final tarball
for src in "${source[@]##*/}"; do
if [[ -L "$srcdir/$src" ]]; then
rm "$srcdir/$src"
fi
done
}
package() {
# Creating needed directories
install -dm755 "$pkgdir/usr/bin"
install -dm755 "$pkgdir/opt/calibre"
@ -134,7 +137,8 @@ package() {
mv -f "$pkgdir/opt/calibre/share" "$pkgdir/usr"
# Create symlinks in /usr/bin
for f in `find "$pkgdir/opt/calibre" -maxdepth 1 -type f -printf "%f\n"`; do
#shellcheck disable=SC2044
for f in $(find "$pkgdir/opt/calibre" -maxdepth 1 -type f -printf "%f\n"); do
ln -s "/opt/calibre/$f" "$pkgdir/usr/bin/$f"
done
}