An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PKGBUILD 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Maintainer: Nemo <archlinux at captnemo dot in>
  2. # Based on upwork-appimage package on the AUR
  3. #
  4. # There's no central repository for AppImages, and no convention on
  5. # system-wide AppImage installations, so we're picking /opt/appimages.
  6. # We grab koreader.png and koreader.desktop from the AppImage, patch the koreader.desktop,
  7. # and install them as we would other apps, for convenience sake.
  8. pkgname=koreader-appimage
  9. pkgver=2019.03.1
  10. pkgrel=1
  11. pkgdesc="An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats"
  12. arch=('x86_64')
  13. depends=('zlib')
  14. makedepends=('p7zip')
  15. url="http://koreader.rocks/"
  16. license=('AGPL3')
  17. _filename="koreader-appimage-x86_64-linux-gnu-v$pkgver.AppImage"
  18. noextract=("$_filename")
  19. options=('!strip')
  20. install=${pkgname}.install
  21. source=("https://github.com/koreader/koreader/releases/download/v$pkgver/koreader-appimage-x86_64-linux-gnu-v$pkgver.AppImage")
  22. sha256sums=('752250c8279ab205836f81a1380b91866b40d46aaa3d889883cc91a85ac109ea')
  23. prepare() {
  24. cd "${srcdir}"
  25. mv "$_filename" "koreader.AppImage"
  26. 7z x "${srcdir}/koreader.AppImage" koreader.png
  27. 7z x "${srcdir}/koreader.AppImage" koreader.desktop
  28. mkdir -p usr/share/pixmaps usr/share/applications opt/appimages
  29. mv koreader.png usr/share/pixmaps
  30. patch -Np0 <../koreader.patch
  31. mv koreader.desktop usr/share/applications
  32. cp koreader.AppImage opt/appimages/
  33. }
  34. package() {
  35. cd "${srcdir}"
  36. cp -rp usr "${pkgdir}/usr"
  37. cp -rp opt "${pkgdir}/opt"
  38. chmod +x "${pkgdir}/opt/appimages/koreader.AppImage"
  39. }