[arch-commits] Commit in anki/repos (3 files)

2020-05-01 Thread Johannes Löthberg via arch-commits
Date: Friday, May 1, 2020 @ 20:03:57
  Author: demize
Revision: 624251

archrelease: copy trunk to community-testing-x86_64

Added:
  anki/repos/community-testing-x86_64/
  
anki/repos/community-testing-x86_64/0002-Remove-bad-build-steps-from-makefiles.patch
(from rev 624250, 
anki/trunk/0002-Remove-bad-build-steps-from-makefiles.patch)
  anki/repos/community-testing-x86_64/PKGBUILD
(from rev 624250, anki/trunk/PKGBUILD)

--+
 0002-Remove-bad-build-steps-from-makefiles.patch |   66 +
 PKGBUILD |  104 +
 2 files changed, 170 insertions(+)

Copied: 
anki/repos/community-testing-x86_64/0002-Remove-bad-build-steps-from-makefiles.patch
 (from rev 624250, anki/trunk/0002-Remove-bad-build-steps-from-makefiles.patch)
===
--- community-testing-x86_64/0002-Remove-bad-build-steps-from-makefiles.patch   
(rev 0)
+++ community-testing-x86_64/0002-Remove-bad-build-steps-from-makefiles.patch   
2020-05-01 20:03:57 UTC (rev 624251)
@@ -0,0 +1,66 @@
+From a050cd2b5a3af880b98e25cf1058d36e1dd6f333 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= 
+Date: Sun, 29 Mar 2020 05:54:00 +0200
+Subject: [PATCH 2/2] Remove bad build steps from makefiles
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Johannes Löthberg 
+---
+ pylib/Makefile | 4 ++--
+ qt/Makefile| 2 +-
+ rspy/Makefile  | 2 +-
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/pylib/Makefile b/pylib/Makefile
+index b9e6aa63..feae25d8 100644
+--- a/pylib/Makefile
 b/pylib/Makefile
+@@ -41,7 +41,7 @@ all: check
+ 
+ PROTODEPS := $(wildcard ../proto/*.proto)
+ 
+-.build/py-proto: .build/dev-deps $(PROTODEPS)
++.build/py-proto: $(PROTODEPS)
+   protoc --proto_path=../proto --python_out=anki --mypy_out=anki 
$(PROTODEPS)
+   perl -i'' -pe 's/from fluent_pb2/from anki.fluent_pb2/' 
anki/backend_pb2.pyi
+   perl -i'' -pe 's/import fluent_pb2/import anki.fluent_pb2/' 
anki/backend_pb2.py
+@@ -52,7 +52,7 @@ PROTODEPS := $(wildcard ../proto/*.proto)
+   python -m black anki/hooks.py
+   @touch $@
+ 
+-BUILD_STEPS := .build/vernum .build/run-deps .build/dev-deps .build/py-proto 
anki/buildinfo.py .build/hooks
++BUILD_STEPS := .build/vernum .build/py-proto anki/buildinfo.py
+ 
+ # Checking
+ ##
+diff --git a/qt/Makefile b/qt/Makefile
+index 2ebee696..c0ba93e3 100644
+--- a/qt/Makefile
 b/qt/Makefile
+@@ -64,7 +64,7 @@ TSDEPS := $(wildcard ts/src/*.ts) $(wildcard ts/scss/*.scss)
+   python -m black aqt/gui_hooks.py
+   @touch $@
+ 
+-BUILD_STEPS := .build/vernum .build/run-deps .build/dev-deps .build/js 
.build/ui aqt/buildinfo.py .build/hooks .build/i18n
++BUILD_STEPS := .build/vernum .build/js .build/ui aqt/buildinfo.py .build/i18n
+ 
+ # Checking
+ ##
+diff --git a/rspy/Makefile b/rspy/Makefile
+index 7506608d..01b7aff4 100644
+--- a/rspy/Makefile
 b/rspy/Makefile
+@@ -47,7 +47,7 @@ all: develop
+ 
+ develop: .build/develop
+ 
+-DEPS := .build/tools .build/vernum ../meta/buildhash \
++DEPS := .build/vernum ../meta/buildhash \
+   $(wildcard $(QT_FTL_TEMPLATES)/*.ftl) \
+   $(wildcard $(QT_FTL_LOCALES)/*/*.ftl) \
+   $(shell "${FIND}" ../rslib/src -name '*.rs') $(wildcard ../proto/*) \
+-- 
+2.26.2
+

Copied: anki/repos/community-testing-x86_64/PKGBUILD (from rev 624250, 
anki/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-01 20:03:57 UTC (rev 624251)
@@ -0,0 +1,104 @@
+# Maintainer: Johannes Löthberg 
+# Contributor: Sergej Pupykin 
+# Contributor: Timm Preetz 
+# Contributor: Michael 'manveru' Fellinger 
+# Contributor: Dave Pretty 
+
+pkgname=anki
+pkgver=2.1.24
+pkgrel=1
+
+pkgdesc="Helps you remember facts (like words/phrases in a foreign language) 
efficiently"
+url="https://ankisrs.net/;
+arch=('x86_64')
+license=('AGPL3')
+
+depends=(
+   # anki and aqt
+   'python-beautifulsoup4'
+   'python-requests'
+   'python-wheel'
+
+   # anki
+   'python-decorator'
+   'python-distro'
+   # Currently not packaged.  Falls back to stdlib json module.
+   # 'python-orjson'
+   'python-protobuf'
+
+   # aqt
+   'python-jsonschema'
+   'python-markdown'
+   'python-pyaudio'
+   'python-pyqt5'
+   'python-pyqtwebengine'
+   'python-send2trash'
+)
+makedepends=(
+   'git'
+   'rsync'
+
+   'maturin'
+   'rustup'
+
+   'python-pip'
+   'python-mypy-protobuf'
+   'npm'
+   'typescript'
+)
+optdepends=(
+   'lame: record sound'
+   'mpv: play sound. prefered over mplayer'
+   'mplayer: play sound'
+)
+
+source=(
+  

[arch-commits] Commit in anki/repos (3 files)

2019-10-02 Thread Johannes Löthberg via arch-commits
Date: Wednesday, October 2, 2019 @ 17:01:23
  Author: demize
Revision: 512436

db-move: moved anki from [community-testing] to [community] (any)

Added:
  anki/repos/community-any/PKGBUILD
(from rev 512435, anki/repos/community-testing-any/PKGBUILD)
Deleted:
  anki/repos/community-any/PKGBUILD
  anki/repos/community-testing-any/

+
 /PKGBUILD  |   31 +++
 community-any/PKGBUILD |   31 ---
 2 files changed, 31 insertions(+), 31 deletions(-)

Deleted: community-any/PKGBUILD
===
--- community-any/PKGBUILD  2019-10-02 16:58:13 UTC (rev 512435)
+++ community-any/PKGBUILD  2019-10-02 17:01:23 UTC (rev 512436)
@@ -1,31 +0,0 @@
-# Maintainer: Johannes Löthberg 
-# Contributor: Sergej Pupykin 
-# Contributor: Timm Preetz 
-# Contributor: Michael 'manveru' Fellinger 
-# Contributor: Dave Pretty 
-
-pkgname=anki
-pkgver=2.1.14
-pkgrel=1
-
-pkgdesc="Helps you remember facts (like words/phrases in a foreign language) 
efficiently"
-url="https://ankisrs.net/;
-arch=('any')
-license=('AGPL3')
-
-depends=('qt5-webengine' 'python-beautifulsoup4' 'python-pyaudio'
- 'python-pyqt5' 'python-pyqtwebengine' 'python-requests' 
'python-send2trash'
- 'python-decorator' 'python-markdown' 'python-jsonschema' 
'python-distro'
- 'desktop-file-utils')
-optdepends=('lame: record sound'
-'mpv: play sound. prefered over mplayer'
-'mplayer: play sound')
-
-source=(https://apps.ankiweb.net/downloads/current/anki-$pkgver-source.tgz)
-sha256sums=('94b8510924ad7bf6bdd7df09045f883a644003ffd77bbdbcdf8b198864a4827b')
-
-package() {
-  cd anki-$pkgver
-
-  make DESTDIR="$pkgdir" PREFIX=/usr install
-}

Copied: anki/repos/community-any/PKGBUILD (from rev 512435, 
anki/repos/community-testing-any/PKGBUILD)
===
--- community-any/PKGBUILD  (rev 0)
+++ community-any/PKGBUILD  2019-10-02 17:01:23 UTC (rev 512436)
@@ -0,0 +1,31 @@
+# Maintainer: Johannes Löthberg 
+# Contributor: Sergej Pupykin 
+# Contributor: Timm Preetz 
+# Contributor: Michael 'manveru' Fellinger 
+# Contributor: Dave Pretty 
+
+pkgname=anki
+pkgver=2.1.15
+pkgrel=1
+
+pkgdesc="Helps you remember facts (like words/phrases in a foreign language) 
efficiently"
+url="https://ankisrs.net/;
+arch=('any')
+license=('AGPL3')
+
+depends=('qt5-webengine' 'python-beautifulsoup4' 'python-pyaudio'
+ 'python-pyqt5' 'python-pyqtwebengine' 'python-requests' 
'python-send2trash'
+ 'python-decorator' 'python-markdown' 'python-jsonschema' 
'python-distro'
+ 'desktop-file-utils')
+optdepends=('lame: record sound'
+'mpv: play sound. prefered over mplayer'
+'mplayer: play sound')
+
+source=(https://apps.ankiweb.net/downloads/current/anki-$pkgver-source.tgz)
+sha256sums=('5a53760164c77d619f55107a13099cffe620566a7f610b61b6c4b52487f3bb89')
+
+package() {
+  cd anki-$pkgver
+
+  make DESTDIR="$pkgdir" PREFIX=/usr install
+}


[arch-commits] Commit in anki/repos (3 files)

2019-06-14 Thread Johannes Löthberg via arch-commits
Date: Friday, June 14, 2019 @ 09:13:08
  Author: demize
Revision: 481411

db-move: moved anki from [community-testing] to [community] (any)

Added:
  anki/repos/community-any/PKGBUILD
(from rev 481410, anki/repos/community-testing-any/PKGBUILD)
Deleted:
  anki/repos/community-any/PKGBUILD
  anki/repos/community-testing-any/

+
 /PKGBUILD  |   31 +++
 community-any/PKGBUILD |   31 ---
 2 files changed, 31 insertions(+), 31 deletions(-)

Deleted: community-any/PKGBUILD
===
--- community-any/PKGBUILD  2019-06-14 09:12:19 UTC (rev 481410)
+++ community-any/PKGBUILD  2019-06-14 09:13:08 UTC (rev 481411)
@@ -1,31 +0,0 @@
-# Maintainer: Johannes Löthberg 
-# Contributor: Sergej Pupykin 
-# Contributor: Timm Preetz 
-# Contributor: Michael 'manveru' Fellinger 
-# Contributor: Dave Pretty 
-
-pkgname=anki
-pkgver=2.1.11
-pkgrel=1
-
-pkgdesc="Helps you remember facts (like words/phrases in a foreign language) 
efficiently"
-url="https://ankisrs.net/;
-arch=('any')
-license=('AGPL3')
-
-depends=('qt5-webengine' 'python-beautifulsoup4' 'python-pyaudio'
- 'python-pyqt5' 'python-pyqtwebengine' 'python-requests' 
'python-send2trash'
- 'python-decorator' 'python-markdown'
- 'desktop-file-utils')
-optdepends=('lame: record sound'
-'mpv: play sound. prefered over mplayer'
-'mplayer: play sound')
-
-source=(https://apps.ankiweb.net/downloads/current/anki-$pkgver-source.tgz)
-sha256sums=('787ce3d7333cc3f33f9bd18ec11d4da56b9ac060edaad21d78fe04e04e559265')
-
-package() {
-  cd anki-$pkgver
-
-  make DESTDIR="$pkgdir" PREFIX=/usr install
-}

Copied: anki/repos/community-any/PKGBUILD (from rev 481410, 
anki/repos/community-testing-any/PKGBUILD)
===
--- community-any/PKGBUILD  (rev 0)
+++ community-any/PKGBUILD  2019-06-14 09:13:08 UTC (rev 481411)
@@ -0,0 +1,31 @@
+# Maintainer: Johannes Löthberg 
+# Contributor: Sergej Pupykin 
+# Contributor: Timm Preetz 
+# Contributor: Michael 'manveru' Fellinger 
+# Contributor: Dave Pretty 
+
+pkgname=anki
+pkgver=2.1.13
+pkgrel=1
+
+pkgdesc="Helps you remember facts (like words/phrases in a foreign language) 
efficiently"
+url="https://ankisrs.net/;
+arch=('any')
+license=('AGPL3')
+
+depends=('qt5-webengine' 'python-beautifulsoup4' 'python-pyaudio'
+ 'python-pyqt5' 'python-pyqtwebengine' 'python-requests' 
'python-send2trash'
+ 'python-decorator' 'python-markdown'
+ 'desktop-file-utils')
+optdepends=('lame: record sound'
+'mpv: play sound. prefered over mplayer'
+'mplayer: play sound')
+
+source=(https://apps.ankiweb.net/downloads/current/anki-$pkgver-source.tgz)
+sha256sums=('8166eebc54575aa55eeff0886ffec3228b3c377885abf9cc18561b7a01cb8edb')
+
+package() {
+  cd anki-$pkgver
+
+  make DESTDIR="$pkgdir" PREFIX=/usr install
+}


[arch-commits] Commit in anki/repos (3 files)

2018-12-13 Thread Johannes Löthberg via arch-commits
Date: Thursday, December 13, 2018 @ 22:56:57
  Author: demize
Revision: 416167

db-move: moved anki from [community-testing] to [community] (any)

Added:
  anki/repos/community-any/
  anki/repos/community-any/PKGBUILD
(from rev 416166, anki/repos/community-testing-any/PKGBUILD)
Deleted:
  anki/repos/community-testing-any/

--+
 PKGBUILD |   31 +++
 1 file changed, 31 insertions(+)

Copied: anki/repos/community-any/PKGBUILD (from rev 416166, 
anki/repos/community-testing-any/PKGBUILD)
===
--- community-any/PKGBUILD  (rev 0)
+++ community-any/PKGBUILD  2018-12-13 22:56:57 UTC (rev 416167)
@@ -0,0 +1,31 @@
+# Maintainer: Johannes Löthberg 
+# Contributor: Sergej Pupykin 
+# Contributor: Timm Preetz 
+# Contributor: Michael 'manveru' Fellinger 
+# Contributor: Dave Pretty 
+
+pkgname=anki
+pkgver=2.1.6
+pkgrel=1
+
+pkgdesc="Helps you remember facts (like words/phrases in a foreign language) 
efficiently"
+url="https://ankisrs.net/;
+arch=('any')
+license=('AGPL3')
+
+depends=('qt5-webengine' 'python-beautifulsoup4' 'python-pyaudio'
+ 'python-pyqt5' 'python-requests' 'python-send2trash'
+ 'python-decorator' 'python-markdown'
+ 'desktop-file-utils')
+optdepends=('lame: record sound'
+'mpv: play sound (prefered over mplayer)'
+'mplayer: play sound')
+
+source=(https://apps.ankiweb.net/downloads/current/anki-$pkgver-source.tgz)
+sha256sums=('104fc85f1a7efa4406ed53666279a3aa3303a811bdc3cb62ca1376b5132c4e50')
+
+package() {
+  cd anki-$pkgver
+
+  make DESTDIR="$pkgdir" PREFIX=/usr install
+}


[arch-commits] Commit in anki/repos (3 files)

2018-05-28 Thread Johannes Löthberg via arch-commits
Date: Monday, May 28, 2018 @ 20:07:38
  Author: demize
Revision: 333084

archrelease: copy trunk to community-testing-x86_64

Added:
  anki/repos/community-testing-x86_64/
  anki/repos/community-testing-x86_64/PKGBUILD
(from rev 333083, anki/trunk/PKGBUILD)
  anki/repos/community-testing-x86_64/makefile-fix.patch
(from rev 333083, anki/trunk/makefile-fix.patch)

+
 PKGBUILD   |   38 ++
 makefile-fix.patch |   39 +++
 2 files changed, 77 insertions(+)

Copied: anki/repos/community-testing-x86_64/PKGBUILD (from rev 333083, 
anki/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-05-28 20:07:38 UTC (rev 333084)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Johannes Löthberg 
+# Contributor: Sergej Pupykin 
+# Contributor: Timm Preetz 
+# Contributor: Michael 'manveru' Fellinger 
+# Contributor: Dave Pretty 
+
+pkgname=anki
+pkgver=2.1.0beta39
+pkgrel=2
+
+pkgdesc="Helps you remember facts (like words/phrases in a foreign language) 
efficiently"
+url="https://ankisrs.net/;
+arch=('x86_64')
+license=('AGPL3')
+
+depends=('qt5-webengine' 'python-beautifulsoup4' 'python-pyaudio'
+ 'python-pyqt5' 'python-requests' 'python-send2trash'
+ 'python-decorator' 'python-markdown')
+optdepends=('lame: record sound'
+'mplayer: play sound')
+
+source=(https://apps.ankiweb.net/downloads/beta/anki-$pkgver-amd64.tar.bz2
+makefile-fix.patch)
+sha256sums=('19797979016d898849475b1e635c4e34a34d439f89421febe452199df76bf2a9'
+'0e9e75cec931ed5b81fbf3d27ab151409cc5044204f92c1e68149013f8688b10')
+
+prepare() {
+  cd anki-$pkgver-amd64
+
+  patch <"$srcdir"/makefile-fix.patch
+}
+
+package() {
+  cd anki-$pkgver-amd64
+
+  make DESTDIR="$pkgdir" PREFIX=/usr install
+}

Copied: anki/repos/community-testing-x86_64/makefile-fix.patch (from rev 
333083, anki/trunk/makefile-fix.patch)
===
--- community-testing-x86_64/makefile-fix.patch (rev 0)
+++ community-testing-x86_64/makefile-fix.patch 2018-05-28 20:07:38 UTC (rev 
333084)
@@ -0,0 +1,39 @@
+--- Makefile.old   2018-05-28 21:48:31.247309797 +0200
 Makefile   2018-05-28 21:49:39.073973458 +0200
+@@ -6,23 +6,20 @@
+   @echo "Uninstall with 'sudo make uninstall'"
+ 
+ install:
+-  rm -rf ${PREFIX}/share/anki
+-  mkdir -p ${PREFIX}/share/anki
+-  cp -av * ${PREFIX}/share/anki/
+-  mkdir -p ${PREFIX}/bin
+-  ln -sf ${PREFIX}/share/anki/bin/anki ${PREFIX}/bin/
++  rm -rf $(DESTDIR)${PREFIX}/share/anki
++  mkdir -p $(DESTDIR)${PREFIX}/share/anki
++  cp -av * $(DESTDIR)${PREFIX}/share/anki/
++  mkdir -p $(DESTDIR)${PREFIX}/bin
++  ln -sf ${PREFIX}/share/anki/bin/anki $(DESTDIR)${PREFIX}/bin/
+   # fix a previous packaging issue where we created this as a file
+-  (test -f ${PREFIX}/share/applications && rm 
${PREFIX}/share/applications)||true
+-  mkdir -p ${PREFIX}/share/pixmaps
+-  mkdir -p ${PREFIX}/share/applications
+-  mkdir -p ${PREFIX}/share/man/man1
+-  cd ${PREFIX}/share/anki && (\
+-  mv anki.xpm anki.png ${PREFIX}/share/pixmaps/;\
+-  mv anki.desktop ${PREFIX}/share/applications/;\
+-  mv anki.1 ${PREFIX}/share/man/man1/)
+-  xdg-mime install anki.xml --novendor
+-  xdg-mime default anki.desktop application/x-anki
+-  xdg-mime default anki.desktop application/x-apkg
++  (test -f $(DESTDIR)${PREFIX}/share/applications && rm 
$(DESTDIR)${PREFIX}/share/applications)||true
++  mkdir -p $(DESTDIR)${PREFIX}/share/pixmaps
++  mkdir -p $(DESTDIR)${PREFIX}/share/applications
++  mkdir -p $(DESTDIR)${PREFIX}/share/man/man1
++  cd $(DESTDIR)${PREFIX}/share/anki && (\
++  mv anki.xpm anki.png $(DESTDIR)${PREFIX}/share/pixmaps/;\
++  mv anki.desktop $(DESTDIR)${PREFIX}/share/applications/;\
++  mv anki.1 $(DESTDIR)${PREFIX}/share/man/man1/)
+   @echo
+   @echo "Install complete. Type 'anki' to run."
+ 


[arch-commits] Commit in anki/repos (3 files)

2017-11-22 Thread Johannes Löthberg
Date: Thursday, November 23, 2017 @ 05:04:49
  Author: demize
Revision: 268158

db-move: moved anki from [community-testing] to [community] (any)

Added:
  anki/repos/community-any/PKGBUILD
(from rev 268157, anki/repos/community-testing-any/PKGBUILD)
Deleted:
  anki/repos/community-any/PKGBUILD
  anki/repos/community-testing-any/

+
 /PKGBUILD  |   36 
 community-any/PKGBUILD |   33 -
 2 files changed, 36 insertions(+), 33 deletions(-)

Deleted: community-any/PKGBUILD
===
--- community-any/PKGBUILD  2017-11-23 05:02:52 UTC (rev 268157)
+++ community-any/PKGBUILD  2017-11-23 05:04:49 UTC (rev 268158)
@@ -1,33 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin 
-# Contributor: Timm Preetz 
-# Contributor: Michael 'manveru' Fellinger 
-# Contributor: Dave Pretty 
-
-pkgname=anki
-pkgver=2.1.0beta23
-pkgrel=1
-pkgdesc="Helps you remember facts (like words/phrases in a foreign language) 
efficiently"
-url="https://ankisrs.net/;
-license=('AGPL3')
-arch=('any')
-depends=('qt5-webengine' 'python-beautifulsoup4' 'python-pyaudio'
- 'python-pyqt5' 'python-requests' 'python-send2trash'
- 'python-decorator' 'python-markdown')
-optdepends=('lame: record sound'
-'mplayer: play sound')
-source=(https://apps.ankiweb.net/downloads/beta/anki-$pkgver-source.tgz)
-sha256sums=('c1d222c021bbdfee8674555db1f709ebdff7bcab6e01f324a7bd8f8ba821cdb0')
-
-package() {
-  cd "$srcdir"/anki-$pkgver
-  mkdir -p "$pkgdir"/usr/{bin,share/{anki,pixmaps,applications,man/man1}}
-  cp -av * "$pkgdir"/usr/share/anki/
-  cd "$pkgdir"/usr/share/anki && (
-mv tools/runanki.system ../../bin/anki
-mv anki.xpm anki.png ../pixmaps/
-mv anki.desktop ../applications/
-mv anki.1 ../man/man1/
-  )
-  rm -rf "$pkgdir"/usr/share/anki/{tests,tools,anki.bat}
-}

Copied: anki/repos/community-any/PKGBUILD (from rev 268157, 
anki/repos/community-testing-any/PKGBUILD)
===
--- community-any/PKGBUILD  (rev 0)
+++ community-any/PKGBUILD  2017-11-23 05:04:49 UTC (rev 268158)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Johannes Löthberg 
+# Contributor: Sergej Pupykin 
+# Contributor: Timm Preetz 
+# Contributor: Michael 'manveru' Fellinger 
+# Contributor: Dave Pretty 
+
+pkgname=anki
+pkgver=2.1.0beta24
+pkgrel=1
+
+pkgdesc="Helps you remember facts (like words/phrases in a foreign language) 
efficiently"
+url="https://ankisrs.net/;
+arch=('any')
+license=('AGPL3')
+
+depends=('qt5-webengine' 'python-beautifulsoup4' 'python-pyaudio'
+ 'python-pyqt5' 'python-requests' 'python-send2trash'
+ 'python-decorator' 'python-markdown')
+optdepends=('lame: record sound'
+'mplayer: play sound')
+
+source=(https://apps.ankiweb.net/downloads/beta/anki-$pkgver-source.tgz)
+sha256sums=('0a2d39a2d72682b3d4faa30ada87bb3b1998456ce57303762b7b9d13775e773c')
+
+package() {
+  cd anki-$pkgver
+  mkdir -p "$pkgdir"/usr/{bin,share/{anki,pixmaps,applications,man/man1}}
+  cp -av * "$pkgdir"/usr/share/anki/
+  cd "$pkgdir"/usr/share/anki
+  mv tools/runanki.system "$pkgdir"/usr/bin/anki
+  mv anki.xpm anki.png "$pkgdir"/usr/share/pixmaps
+  mv anki.desktop "$pkgdir"/usr/share/applications
+  mv anki.1 "$pkgdir"/usr/share/man/man1
+  rm -rf "$pkgdir"/usr/share/anki/{tests,tools,anki.bat}
+}