From 1494b7d07b0fd01136d94820d0f75bc2cf251823 Mon Sep 17 00:00:00 2001 From: Kuklin István Date: Mon, 3 Feb 2020 11:07:47 +0100 Subject: 2.1.19 --- .SRCINFO | 8 ++++---- PKGBUILD | 8 ++++---- remove_xdg_cmds_from_makefile.patch | 15 +++++++-------- update_srcinfo.sh | 9 +++++++++ 4 files changed, 24 insertions(+), 16 deletions(-) create mode 100755 update_srcinfo.sh diff --git a/.SRCINFO b/.SRCINFO index 62c557e..bfdf843 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,17 +1,17 @@ pkgbase = anki-official-binary-bundle pkgdesc = The official binary shipped with the tested versions of the dependent libraries. - pkgver = 2.1.15 + pkgver = 2.1.19 pkgrel = 1 url = https://apps.ankiweb.net arch = x86_64 license = GNU AGPL provides = anki conflicts = anki-git - source = https://apps.ankiweb.net/downloads/current/anki-2.1.15-linux-amd64.tar.bz2 + source = https://apps.ankiweb.net/downloads/current/anki-2.1.19-linux-amd64.tar.bz2 source = remove_xdg_cmds_from_makefile.patch source = prefix-fix.patch - md5sums = 257498db511b0caff35e64290b422176 - md5sums = 81e1cb8bfb5122319b141ea25e536ef6 + md5sums = 4a6f18ff83eef746be9588b2734c7af6 + md5sums = 0eb542757f6b15d9904a53496627c76b md5sums = 82a5d4f63bbc29e6a80043dd95973b4f pkgname = anki-official-binary-bundle diff --git a/PKGBUILD b/PKGBUILD index a1e3a58..a65f1ec 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ # Maintainer: Kuklin István pkgname=anki-official-binary-bundle -pkgver=2.1.15 +pkgver=2.1.19 pkgrel=1 epoch= pkgdesc="The official binary shipped with the tested versions of the dependent libraries." @@ -32,8 +32,8 @@ source=( ) noextract=() md5sums=( - '257498db511b0caff35e64290b422176' - '81e1cb8bfb5122319b141ea25e536ef6' + '4a6f18ff83eef746be9588b2734c7af6' + '0eb542757f6b15d9904a53496627c76b' '82a5d4f63bbc29e6a80043dd95973b4f' ) validpgpkeys=() @@ -41,7 +41,7 @@ validpgpkeys=() prepare() { cd "$srcdir" ln -s "$topdirname" anki - patch -p0 -i remove_xdg_cmds_from_makefile.patch + patch -p1 -i remove_xdg_cmds_from_makefile.patch patch -p0 -i prefix-fix.patch rm anki } 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 @@ ---- anki/Makefile.old -+++ anki/Makefile -@@ -20,14 +20,14 @@ +diff --git a/anki/Makefile b/anki/Makefile +index 9f10a3a..6a3539b 100644 +--- a/anki/Makefile ++++ b/anki/Makefile +@@ -20,15 +20,10 @@ install: 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-colpkg - xdg-mime default anki.desktop application/x-apkg -+# xdg-mime install anki.xml --novendor -+# xdg-mime default anki.desktop application/x-colpkg -+# xdg-mime default anki.desktop application/x-apkg +- xdg-mime default anki.desktop application/x-ankiaddon @echo @echo "Install complete. Type 'anki' to run." - + uninstall: - -xdg-mime uninstall ${PREFIX}/share/anki/anki.xml -+# -xdg-mime uninstall ${PREFIX}/share/anki/anki.xml rm -rf ${PREFIX}/share/anki rm -rf ${PREFIX}/bin/anki 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 @@ +#!/bin/sh + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" + +echo Updating .SRCINFO + +cd "$DIR" +makepkg --printsrcinfo > .SRCINFO +git add .SRCINFO -- cgit v1.2.3-70-g09d2