diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | remove_xdg_cmds_from_makefile.patch | 15 | ||||
-rwxr-xr-x | update_srcinfo.sh | 9 |
4 files changed, 24 insertions, 16 deletions
@@ -1,17 +1,17 @@ | |||
1 | pkgbase = anki-official-binary-bundle | 1 | pkgbase = anki-official-binary-bundle |
2 | pkgdesc = The official binary shipped with the tested versions of the dependent libraries. | 2 | pkgdesc = The official binary shipped with the tested versions of the dependent libraries. |
3 | pkgver = 2.1.15 | 3 | pkgver = 2.1.19 |
4 | pkgrel = 1 | 4 | pkgrel = 1 |
5 | url = https://apps.ankiweb.net | 5 | url = https://apps.ankiweb.net |
6 | arch = x86_64 | 6 | arch = x86_64 |
7 | license = GNU AGPL | 7 | license = GNU AGPL |
8 | provides = anki | 8 | provides = anki |
9 | conflicts = anki-git | 9 | conflicts = anki-git |
10 | source = https://apps.ankiweb.net/downloads/current/anki-2.1.15-linux-amd64.tar.bz2 | 10 | source = https://apps.ankiweb.net/downloads/current/anki-2.1.19-linux-amd64.tar.bz2 |
11 | source = remove_xdg_cmds_from_makefile.patch | 11 | source = remove_xdg_cmds_from_makefile.patch |
12 | source = prefix-fix.patch | 12 | source = prefix-fix.patch |
13 | md5sums = 257498db511b0caff35e64290b422176 | 13 | md5sums = 4a6f18ff83eef746be9588b2734c7af6 |
14 | md5sums = 81e1cb8bfb5122319b141ea25e536ef6 | 14 | md5sums = 0eb542757f6b15d9904a53496627c76b |
15 | md5sums = 82a5d4f63bbc29e6a80043dd95973b4f | 15 | md5sums = 82a5d4f63bbc29e6a80043dd95973b4f |
16 | 16 | ||
17 | pkgname = anki-official-binary-bundle | 17 | pkgname = anki-official-binary-bundle |
@@ -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.15 | 8 | pkgver=2.1.19 |
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." |
@@ -32,8 +32,8 @@ source=( | |||
32 | ) | 32 | ) |
33 | noextract=() | 33 | noextract=() |
34 | md5sums=( | 34 | md5sums=( |
35 | '257498db511b0caff35e64290b422176' | 35 | '4a6f18ff83eef746be9588b2734c7af6' |
36 | '81e1cb8bfb5122319b141ea25e536ef6' | 36 | '0eb542757f6b15d9904a53496627c76b' |
37 | '82a5d4f63bbc29e6a80043dd95973b4f' | 37 | '82a5d4f63bbc29e6a80043dd95973b4f' |
38 | ) | 38 | ) |
39 | validpgpkeys=() | 39 | validpgpkeys=() |
@@ -41,7 +41,7 @@ validpgpkeys=() | |||
41 | prepare() { | 41 | prepare() { |
42 | cd "$srcdir" | 42 | cd "$srcdir" |
43 | ln -s "$topdirname" anki | 43 | ln -s "$topdirname" anki |
44 | patch -p0 -i remove_xdg_cmds_from_makefile.patch | 44 | patch -p1 -i remove_xdg_cmds_from_makefile.patch |
45 | patch -p0 -i prefix-fix.patch | 45 | patch -p0 -i prefix-fix.patch |
46 | rm anki | 46 | rm anki |
47 | } | 47 | } |
diff --git a/remove_xdg_cmds_from_makefile.patch b/remove_xdg_cmds_from_makefile.patch index a3a4661..8785e8b 100644 --- a/remove_xdg_cmds_from_makefile.patch +++ b/remove_xdg_cmds_from_makefile.patch | |||
@@ -1,21 +1,20 @@ | |||
1 | --- anki/Makefile.old | 1 | diff --git a/anki/Makefile b/anki/Makefile |
2 | +++ anki/Makefile | 2 | index 9f10a3a..6a3539b 100644 |
3 | @@ -20,14 +20,14 @@ | 3 | --- a/anki/Makefile |
4 | +++ b/anki/Makefile | ||
5 | @@ -20,15 +20,10 @@ install: | ||
4 | mv anki.xpm anki.png ${PREFIX}/share/pixmaps/;\ | 6 | mv anki.xpm anki.png ${PREFIX}/share/pixmaps/;\ |
5 | mv anki.desktop ${PREFIX}/share/applications/;\ | 7 | mv anki.desktop ${PREFIX}/share/applications/;\ |
6 | mv anki.1 ${PREFIX}/share/man/man1/) | 8 | mv anki.1 ${PREFIX}/share/man/man1/) |
7 | - xdg-mime install anki.xml --novendor | 9 | - xdg-mime install anki.xml --novendor |
8 | - xdg-mime default anki.desktop application/x-colpkg | 10 | - xdg-mime default anki.desktop application/x-colpkg |
9 | - xdg-mime default anki.desktop application/x-apkg | 11 | - xdg-mime default anki.desktop application/x-apkg |
10 | +# xdg-mime install anki.xml --novendor | 12 | - xdg-mime default anki.desktop application/x-ankiaddon |
11 | +# xdg-mime default anki.desktop application/x-colpkg | ||
12 | +# xdg-mime default anki.desktop application/x-apkg | ||
13 | @echo | 13 | @echo |
14 | @echo "Install complete. Type 'anki' to run." | 14 | @echo "Install complete. Type 'anki' to run." |
15 | 15 | ||
16 | uninstall: | 16 | uninstall: |
17 | - -xdg-mime uninstall ${PREFIX}/share/anki/anki.xml | 17 | - -xdg-mime uninstall ${PREFIX}/share/anki/anki.xml |
18 | +# -xdg-mime uninstall ${PREFIX}/share/anki/anki.xml | ||
19 | rm -rf ${PREFIX}/share/anki | 18 | rm -rf ${PREFIX}/share/anki |
20 | rm -rf ${PREFIX}/bin/anki | 19 | rm -rf ${PREFIX}/bin/anki |
21 | rm -rf ${PREFIX}/share/pixmaps/anki.xpm | 20 | rm -rf ${PREFIX}/share/pixmaps/anki.xpm |
diff --git a/update_srcinfo.sh b/update_srcinfo.sh new file mode 100755 index 0000000..d34ac7d --- /dev/null +++ b/update_srcinfo.sh | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
4 | |||
5 | echo Updating .SRCINFO | ||
6 | |||
7 | cd "$DIR" | ||
8 | makepkg --printsrcinfo > .SRCINFO | ||
9 | git add .SRCINFO | ||