diff options
author | Kuklin István | 2019-06-05 11:19:10 +0200 |
---|---|---|
committer | Kuklin István | 2019-06-05 11:19:26 +0200 |
commit | 9d07da18a196beb9bb8c2ff5e12d1fe3a3413fbc (patch) | |
tree | 786b6ada5c7aaf49ab68856179074b65db2d93ec | |
parent | 4d345c711db1e17b6ff75efae97dd8c254984cf4 (diff) | |
download | packages-9d07da18a196beb9bb8c2ff5e12d1fe3a3413fbc.tar.gz packages-9d07da18a196beb9bb8c2ff5e12d1fe3a3413fbc.tar.bz2 packages-9d07da18a196beb9bb8c2ff5e12d1fe3a3413fbc.zip |
2.1.13
-rw-r--r-- | PKGBUILD | 20 | ||||
-rw-r--r-- | prefix-fix.patch | 4 | ||||
-rw-r--r-- | remove_xdg_cmds_from_makefile.patch | 4 |
3 files changed, 17 insertions, 11 deletions
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | # Maintainer: Kuklin István <kuklinistvan@zoho.com> | 6 | # Maintainer: Kuklin István <kuklinistvan@zoho.com> |
7 | pkgname=anki-official-binary-bundle | 7 | pkgname=anki-official-binary-bundle |
8 | pkgver=2.1.12 | 8 | pkgver=2.1.13 |
9 | pkgrel=1 | 9 | pkgrel=1 |
10 | epoch= | 10 | epoch= |
11 | pkgdesc="The official binary shipped with the tested versions of the dependent libraries." | 11 | pkgdesc="The official binary shipped with the tested versions of the dependent libraries." |
@@ -25,19 +25,25 @@ options=() | |||
25 | install= | 25 | install= |
26 | changelog= | 26 | changelog= |
27 | topdirname="anki-$pkgver-linux-amd64" | 27 | topdirname="anki-$pkgver-linux-amd64" |
28 | source=("https://apps.ankiweb.net/downloads/current/${topdirname}.tar.bz2" "remove_xdg_cmds_from_makefile.patch" "prefix-fix.patch") | 28 | source=( |
29 | "https://apps.ankiweb.net/downloads/current/${topdirname}.tar.bz2" | ||
30 | "remove_xdg_cmds_from_makefile.patch" | ||
31 | "prefix-fix.patch" | ||
32 | ) | ||
29 | noextract=() | 33 | noextract=() |
30 | md5sums=( | 34 | md5sums=( |
31 | '5c0e65479907b178ce7a9cb7db5c8238' | 35 | '1cbc4cf03f5f41fdbf694b931cb512c0' |
32 | 'f0aa931cc56a39efa3cef0c2ddbaea78' | 36 | '81e1cb8bfb5122319b141ea25e536ef6' |
33 | '2d79e7014d1242e04dc398415bfdd5d8' | 37 | '82a5d4f63bbc29e6a80043dd95973b4f' |
34 | ) | 38 | ) |
35 | validpgpkeys=() | 39 | validpgpkeys=() |
36 | 40 | ||
37 | prepare() { | 41 | prepare() { |
38 | cd "$srcdir" | 42 | cd "$srcdir" |
39 | patch -p0 -i remove_xdg_cmds_from_makefile.patch | 43 | ln -s "$topdirname" anki |
40 | patch -p0 -i prefix-fix.patch | 44 | patch -p0 -i remove_xdg_cmds_from_makefile.patch |
45 | patch -p0 -i prefix-fix.patch | ||
46 | rm anki | ||
41 | } | 47 | } |
42 | 48 | ||
43 | build() { | 49 | build() { |
diff --git a/prefix-fix.patch b/prefix-fix.patch index 8c68ba6..af7e059 100644 --- a/prefix-fix.patch +++ b/prefix-fix.patch | |||
@@ -1,5 +1,5 @@ | |||
1 | --- anki-2.1.12-linux-amd64/Makefile.orig | 1 | --- anki/Makefile.orig |
2 | +++ anki-2.1.12-linux-amd64/Makefile | 2 | +++ anki/Makefile |
3 | @@ -10,7 +10,7 @@ | 3 | @@ -10,7 +10,7 @@ |
4 | mkdir -p ${PREFIX}/share/anki | 4 | mkdir -p ${PREFIX}/share/anki |
5 | cp -av * ${PREFIX}/share/anki/ | 5 | cp -av * ${PREFIX}/share/anki/ |
diff --git a/remove_xdg_cmds_from_makefile.patch b/remove_xdg_cmds_from_makefile.patch index fbb96a0..a3a4661 100644 --- a/remove_xdg_cmds_from_makefile.patch +++ b/remove_xdg_cmds_from_makefile.patch | |||
@@ -1,5 +1,5 @@ | |||
1 | --- anki-2.1.12-linux-amd64/Makefile.old | 1 | --- anki/Makefile.old |
2 | +++ anki-2.1.12-linux-amd64/Makefile | 2 | +++ anki/Makefile |
3 | @@ -20,14 +20,14 @@ | 3 | @@ -20,14 +20,14 @@ |
4 | mv anki.xpm anki.png ${PREFIX}/share/pixmaps/;\ | 4 | mv anki.xpm anki.png ${PREFIX}/share/pixmaps/;\ |
5 | mv anki.desktop ${PREFIX}/share/applications/;\ | 5 | mv anki.desktop ${PREFIX}/share/applications/;\ |