Browse Source

Initial commit

master
Nemo 1 year ago
commit
0db3ffdec0
5 changed files with 72 additions and 0 deletions
  1. 16
    0
      .SRCINFO
  2. 6
    0
      .gitignore
  3. 36
    0
      PKGBUILD
  4. 3
    0
      koreader-appimage.install
  5. 11
    0
      koreader.patch

+ 16
- 0
.SRCINFO View File

@@ -0,0 +1,16 @@
pkgbase = koreader-appimage
pkgdesc = An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats
pkgver = 2018.04.10.beta
pkgrel = 1
url = http://koreader.rocks/
install = koreader-appimage.install
arch = x86_64
license = AGPL3
depends = zlib
noextract = koreader-appimage-x86_64-linux-gnu-v2015.11-1644-ge39ed90_2018-04-09.AppImage
options = !strip
source = https://github.com/koreader/koreader/releases/download/v2018.04.10-beta/koreader-appimage-x86_64-linux-gnu-v2015.11-1644-ge39ed90_2018-04-09.AppImage
sha256sums = 85550ed003a906962e33db1b28132c1d2b8264185e1aa145e3a5693eb49a5e64

pkgname = koreader-appimage


+ 6
- 0
.gitignore View File

@@ -0,0 +1,6 @@
*
!*.patch
!PKGBUILD
!.SRCINFO
!*.install
!.gitignore

+ 36
- 0
PKGBUILD View File

@@ -0,0 +1,36 @@
# Maintainer: Nemo <archlinux at captnemo dot in>
pkgname=koreader-appimage
pkgver=2018.04.10.beta
pkgrel=1

pkgdesc="An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats"
arch=('x86_64')
depends=('zlib')
url="http://koreader.rocks/"
license=('AGPL3')
noextract=('koreader-appimage-x86_64-linux-gnu-v2015.11-1644-ge39ed90_2018-04-09.AppImage')
options=('!strip')
install=${pkgname}.install
source=("https://github.com/koreader/koreader/releases/download/v2018.04.10-beta/koreader-appimage-x86_64-linux-gnu-v2015.11-1644-ge39ed90_2018-04-09.AppImage")
sha256sums=('85550ed003a906962e33db1b28132c1d2b8264185e1aa145e3a5693eb49a5e64')


prepare() {
cd "${srcdir}"
mv "koreader-appimage-x86_64-linux-gnu-v2015.11-1644-ge39ed90_2018-04-09.AppImage" "koreader.AppImage"
7z x "${srcdir}/koreader.AppImage" koreader.png
7z x "${srcdir}/koreader.AppImage" koreader.desktop
mkdir -p usr/share/pixmaps
mkdir -p usr/share/applications
mkdir -p opt/appimages
mv koreader.png usr/share/pixmaps
patch -Np0 <../koreader.patch
mv koreader.desktop usr/share/applications
cp koreader.AppImage opt/appimages/
}

package() {
cd "${srcdir}"
cp -rp usr "${pkgdir}/usr"
cp -rp opt "${pkgdir}/opt"
}

+ 3
- 0
koreader-appimage.install View File

@@ -0,0 +1,3 @@
post_install() {
chmod 555 /opt/appimages/koreader.AppImage
}

+ 11
- 0
koreader.patch View File

@@ -0,0 +1,11 @@
--- koreader.desktop 2018-04-10 12:00:07.000000000 +0530
+++ koreader.desktop 2018-04-12 01:25:57.596156359 +0530
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=KOReader
Comment=KOReader is a document viewer
-Exec=reader.lua %u
+Exec=/opt/appimages/koreader.AppImage %u
Icon=koreader
Terminal=false
Type=Application

Loading…
Cancel
Save