Browse Source

Initial commit

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 @@
1
+pkgbase = koreader-appimage
2
+	pkgdesc = An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats
3
+	pkgver = 2018.04.10.beta
4
+	pkgrel = 1
5
+	url = http://koreader.rocks/
6
+	install = koreader-appimage.install
7
+	arch = x86_64
8
+	license = AGPL3
9
+	depends = zlib
10
+	noextract = koreader-appimage-x86_64-linux-gnu-v2015.11-1644-ge39ed90_2018-04-09.AppImage
11
+	options = !strip
12
+	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
13
+	sha256sums = 85550ed003a906962e33db1b28132c1d2b8264185e1aa145e3a5693eb49a5e64
14
+
15
+pkgname = koreader-appimage
16
+

+ 6
- 0
.gitignore View File

@@ -0,0 +1,6 @@
1
+*
2
+!*.patch
3
+!PKGBUILD
4
+!.SRCINFO
5
+!*.install
6
+!.gitignore

+ 36
- 0
PKGBUILD View File

@@ -0,0 +1,36 @@
1
+# Maintainer: Nemo <archlinux at captnemo dot in>
2
+pkgname=koreader-appimage
3
+pkgver=2018.04.10.beta
4
+pkgrel=1
5
+
6
+pkgdesc="An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats"
7
+arch=('x86_64')
8
+depends=('zlib')
9
+url="http://koreader.rocks/"
10
+license=('AGPL3')
11
+noextract=('koreader-appimage-x86_64-linux-gnu-v2015.11-1644-ge39ed90_2018-04-09.AppImage')
12
+options=('!strip')
13
+install=${pkgname}.install
14
+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")
15
+sha256sums=('85550ed003a906962e33db1b28132c1d2b8264185e1aa145e3a5693eb49a5e64')
16
+
17
+
18
+prepare() {
19
+    cd "${srcdir}"
20
+    mv "koreader-appimage-x86_64-linux-gnu-v2015.11-1644-ge39ed90_2018-04-09.AppImage" "koreader.AppImage"
21
+    7z x "${srcdir}/koreader.AppImage" koreader.png
22
+    7z x "${srcdir}/koreader.AppImage" koreader.desktop
23
+    mkdir -p usr/share/pixmaps
24
+    mkdir -p usr/share/applications
25
+    mkdir -p opt/appimages
26
+    mv koreader.png usr/share/pixmaps
27
+    patch -Np0 <../koreader.patch
28
+    mv koreader.desktop usr/share/applications
29
+    cp koreader.AppImage opt/appimages/
30
+}
31
+
32
+package() {
33
+    cd "${srcdir}"
34
+    cp -rp usr "${pkgdir}/usr"
35
+    cp -rp opt "${pkgdir}/opt"
36
+}

+ 3
- 0
koreader-appimage.install View File

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

+ 11
- 0
koreader.patch View File

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

Loading…
Cancel
Save