diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 11 insertions, 15 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.35 | 8 | pkgver=2.1.38 |
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." |
@@ -13,10 +13,10 @@ arch=('x86_64') | |||
13 | url="https://apps.ankiweb.net" | 13 | url="https://apps.ankiweb.net" |
14 | license=('GNU AGPL') | 14 | license=('GNU AGPL') |
15 | groups=() | 15 | groups=() |
16 | depends=() | 16 | depends=('libxkbcommon-x11') |
17 | makedepends=() | 17 | makedepends=() |
18 | checkdepends=() | 18 | checkdepends=() |
19 | optdepends=() | 19 | optdepends=('mpv') |
20 | provides=('anki') | 20 | provides=('anki') |
21 | conflicts=('anki' 'anki-git') | 21 | conflicts=('anki' 'anki-git') |
22 | replaces=() | 22 | replaces=() |
@@ -24,33 +24,29 @@ backup=() | |||
24 | options=() | 24 | options=() |
25 | install= | 25 | install= |
26 | changelog= | 26 | changelog= |
27 | topdirname="anki-$pkgver-linux-amd64" | 27 | topdirname="anki-$pkgver-linux" |
28 | source=( | 28 | source=( |
29 | "https://apps.ankiweb.net/downloads/current/${topdirname}.tar.bz2" | 29 | "https://github.com/ankitects/anki/releases/download/${pkgver}/${topdirname}.tar.bz2" |
30 | "remove_xdg_cmds_from_makefile.patch" | 30 | "install_sh.patch" |
31 | "prefix-fix.patch" | ||
32 | ) | 31 | ) |
33 | noextract=() | 32 | noextract=() |
34 | md5sums=('d7ad8af7c1d9ddd92bb14d9d4a10ea7c' | 33 | md5sums=('ab70980ca8b87a6f0fd67d05fc7a37d4' |
35 | '0eb542757f6b15d9904a53496627c76b' | 34 | '0ffca54471c2b5b2a300a68a93e135db') |
36 | '82a5d4f63bbc29e6a80043dd95973b4f') | ||
37 | 35 | ||
38 | validpgpkeys=() | 36 | validpgpkeys=() |
39 | 37 | ||
40 | prepare() { | 38 | prepare() { |
41 | cd "$srcdir" | 39 | cd "$srcdir" |
42 | ln -s "$topdirname" anki | 40 | ln -s "$topdirname" anki |
43 | patch -p1 -i remove_xdg_cmds_from_makefile.patch | 41 | patch -p0 -i install_sh.patch anki/install.sh |
44 | patch -p0 -i prefix-fix.patch | ||
45 | rm anki | 42 | rm anki |
46 | } | 43 | } |
47 | 44 | ||
48 | build() { | 45 | build() { |
49 | cd "$topdirname" | 46 | cd "$topdirname" |
50 | make | ||
51 | } | 47 | } |
52 | 48 | ||
53 | package() { | 49 | package() { |
54 | cd "$topdirname" | 50 | cd "$topdirname" |
55 | make PREFIX="$pkgdir"/usr/ install | 51 | PREFIX="$pkgdir"/usr/ ./install.sh |
56 | } | 52 | } |