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}"
}