summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexBocken2022-12-17 10:08:48 +0100
committerAlexBocken2022-12-17 10:08:48 +0100
commit30c22824d4eb4e6eba6182b19cd1dddb225e95f1 (patch)
tree6288ee331de318d26a6e3a90de8ed80f0b2dfdb7
parent83d44f747cc6fc2297adb65f1f9e0483785a3fcd (diff)
downloadaur-30c22824d4eb4e6eba6182b19cd1dddb225e95f1.tar.gz
add icon and .desktop files
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 6 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 60346745b6c5..b248321ce834 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = anki-qt5
pkgdesc = Helps you remember facts (like words/phrases in a foreign language) - Qt5 Build
pkgver = 2.1.55
- pkgrel = 3
+ pkgrel = 4
url = https://apps.ankiweb.net/
arch = x86_64
license = AGPL3
diff --git a/PKGBUILD b/PKGBUILD
index 8e6d36bc3c75..2140ddd254a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
pkgname=anki-qt5
pkgver=2.1.55
-pkgrel=3
+pkgrel=4
pkgdesc="Helps you remember facts (like words/phrases in a foreign language) - Qt5 Build"
url="https://apps.ankiweb.net/"
license=('AGPL3')
@@ -55,6 +55,8 @@ optdepends=(
'mpv: play sound. prefered over mplayer'
'mplayer: play sound'
)
+# using the tag tarballs does not work with the new (>= 2.1.55) build process.
+# the '.git' folder is not included in those but is required for a sucessful build
source=("anki-${pkgver}::git+https://github.com/ankitects/anki#tag=${pkgver}"
"no-update.patch"
"force_qt5.patch"
@@ -85,6 +87,8 @@ package() {
python -m installer --destdir="$pkgdir" $file
done
+ install -Dm644 qt/bundle/lin/anki.desktop "$pkgdir"/usr/share/applications/anki.desktop
+ install -Dm644 qt/bundle/lin/anki.png "$pkgdir"/usr/share/pixmaps/anki.png
find $pkgdir -iname __pycache__ | xargs -r rm -rf
find $pkgdir -iname direct_url.json | xargs -r rm -rf
}