Error when updating or installing Koreader v2024.11

The build function has an error easily fixable, you need to change the extension of the file from data.tar.zst to data.tar.xz.

# Maintainer: zaoqi <zaomir@outlook.com>

pkgname=koreader-bin
pkgver=2024.11
pkgrel=2
pkgdesc="An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats, running on Cervantes, Kindle, Kobo, PocketBook and Android devices"
arch=("x86_64" 'aarch64')
url="https://github.com/koreader/koreader/"
license=('AGPL3')
depends=('sdl2' 'fonts-noto-hinted' 'fonts-droid-fallback')
source_x86_64=("https://github.com/koreader/koreader/releases/download/v${pkgver}/koreader-${pkgver}-amd64.deb")
source_aarch64=("https://github.com/koreader/koreader/releases/download/v${pkgver}/koreader-${pkgver}-arm64.deb")
sha256sums_x86_64=('89b7a116b39c26a84cf823007070e7dd7c32e82b9e07c91d9e860c3037bfd89b')
sha256sums_aarch64=('bb2fb8fa9372cf5d31ac6334405f6ad32e94a502b507d3c636aadc2ba9c43506')

build() {
  mkdir -p "${srcdir}/dpkgdir"
  tar -xvf data.tar.xz -C "${srcdir}/dpkgdir"
}

package() {
  cp -r "${srcdir}/dpkgdir"/* "${pkgdir}"
}

Not sure why this has been posted here. The fix is already in the comments of the AUR (en) - koreader-bin page:

Latest Comments

1 2 3 Next › Last »

rogue_ronin commented on 2024-11-25 03:19 (UTC) (edited on 2024-11-25 03:19 (UTC) by rogue_ronin)

typo in the fix, it’s zst not rst

sed -i -e 's/\.tar\.zst/.tar.xz/' PKGBUILD

koebi commented on 2024-11-21 20:00 (UTC)

It has worked. Many thanks for your hint, lostatsea.

lostatsea commented on 2024-11-21 17:27 (UTC)

It looks like the compression format has changed to xz. If you are getting the error

tar: data.tar.zst: Cannot open: No such file or directory

then change the PKGBUILD using

sed -i -e 's/\.tar\.rst/.tar.xz/' PKGBUILD

and retry.

koebi commented on 2024-11-21 11:14 (UTC) (edited on 2024-11-21 11:18 (UTC) by koebi)

When I am trying to build koreader-bin 2024.11-2 I get the following error message:

tar: data.tar.zst: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.