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

Johannes Löthberg demize at archlinux.org
Wed Jun 13 09:55:48 UTC 2018


    Date: Wednesday, June 13, 2018 @ 09:55:48
  Author: demize
Revision: 342880

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

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

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

Copied: anki/repos/community-x86_64/PKGBUILD (from rev 342879, anki/repos/community-testing-x86_64/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-06-13 09:55:48 UTC (rev 342880)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Timm Preetz <timm at preetz.us>
+# Contributor: Michael 'manveru' Fellinger <m.fellinger at gmail.com>
+# Contributor: Dave Pretty <david dot pretty at gmail dot com>
+
+pkgname=anki
+pkgver=2.1.0beta40
+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=('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=('d833562df63d4e82acb728c3ccfdf81a2246897f4b9e0bbeb6437bfd6cc4b780'
+            '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-x86_64/makefile-fix.patch (from rev 342879, anki/repos/community-testing-x86_64/makefile-fix.patch)
===================================================================
--- community-x86_64/makefile-fix.patch	                        (rev 0)
+++ community-x86_64/makefile-fix.patch	2018-06-13 09:55:48 UTC (rev 342880)
@@ -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."
+ 



More information about the arch-commits mailing list