summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--anki-official-binary-bundle/.SRCINFO20
-rw-r--r--anki-official-binary-bundle/.gitignore4
-rw-r--r--anki-official-binary-bundle/PKGBUILD37
-rw-r--r--anki-official-binary-bundle/anki-official-binary-bundle.install9
-rw-r--r--anki-official-binary-bundle/install_sh.patch27
5 files changed, 0 insertions, 97 deletions
diff --git a/anki-official-binary-bundle/.SRCINFO b/anki-official-binary-bundle/.SRCINFO
deleted file mode 100644
index b001845..0000000
--- a/anki-official-binary-bundle/.SRCINFO
+++ /dev/null
@@ -1,20 +0,0 @@
1pkgbase = anki-official-binary-bundle
2 pkgdesc = The official binary shipped with the tested versions of the dependent libraries.
3 pkgver = 2.1.66
4 pkgrel = 1
5 url = https://github.com/ankitects/anki
6 install = anki-official-binary-bundle.install
7 arch = x86_64
8 license = AGPL
9 depends = libxkbcommon-x11
10 optdepends = mpv
11 provides = anki
12 conflicts = anki
13 conflicts = anki-bin
14 conflicts = anki-git
15 source = https://github.com/ankitects/anki/releases/download/2.1.66/anki-2.1.66-linux-qt6.tar.zst
16 source = install_sh.patch
17 sha256sums = 3f53c42b3d2f6e53f188bae2df842b3f4faa3ac96d26cbcf2f62559988f5c058
18 sha256sums = 991297cb02434d753f55980205a22971ed98655b0f62f0104ae4692155355d8c
19
20pkgname = anki-official-binary-bundle
diff --git a/anki-official-binary-bundle/.gitignore b/anki-official-binary-bundle/.gitignore
deleted file mode 100644
index 2bdc6ae..0000000
--- a/anki-official-binary-bundle/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
1*.tar.bz2
2*.tar.xz
3src
4pkg
diff --git a/anki-official-binary-bundle/PKGBUILD b/anki-official-binary-bundle/PKGBUILD
deleted file mode 100644
index 07982be..0000000
--- a/anki-official-binary-bundle/PKGBUILD
+++ /dev/null
@@ -1,37 +0,0 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2# Contributor: Kuklin István <kuklinistvan@zoho.com>
3# Contributor: Aria Moradi <aria.moradi007 at gmail dot com>
4
5
6pkgname=anki-official-binary-bundle
7pkgver=2.1.66
8_pkgname="anki-$pkgver-linux-qt6"
9pkgrel=1
10epoch=
11pkgdesc="The official binary shipped with the tested versions of the dependent libraries."
12arch=('x86_64')
13url="https://github.com/ankitects/anki"
14license=('AGPL')
15groups=()
16depends=('libxkbcommon-x11')
17makedepends=()
18optdepends=('mpv')
19provides=('anki')
20conflicts=('anki' 'anki-bin' 'anki-git')
21replaces=()
22options=()
23install=$pkgname.install
24source=("https://github.com/ankitects/anki/releases/download/${pkgver}/${_pkgname}.tar.zst"
25 "install_sh.patch")
26sha256sums=('3f53c42b3d2f6e53f188bae2df842b3f4faa3ac96d26cbcf2f62559988f5c058'
27 '991297cb02434d753f55980205a22971ed98655b0f62f0104ae4692155355d8c')
28
29prepare() {
30 cd "$srcdir/$_pkgname"
31 patch install.sh ../install_sh.patch
32}
33
34package() {
35 cd "$_pkgname"
36 PREFIX="$pkgdir/usr/" ./install.sh
37}
diff --git a/anki-official-binary-bundle/anki-official-binary-bundle.install b/anki-official-binary-bundle/anki-official-binary-bundle.install
deleted file mode 100644
index e54a631..0000000
--- a/anki-official-binary-bundle/anki-official-binary-bundle.install
+++ /dev/null
@@ -1,9 +0,0 @@
1post_install () {
2 xdg-mime install /usr/share/anki/anki.xml --novendor
3 xdg-mime default /usr/share/applications/anki.desktop application/x-colpkg
4 xdg-mime default /usr/share/applications/anki.desktop application/x-apkg
5}
6
7pre_remove() {
8 xdg-mime uninstall /usr/share/anki/anki.xml
9}
diff --git a/anki-official-binary-bundle/install_sh.patch b/anki-official-binary-bundle/install_sh.patch
deleted file mode 100644
index e76e1af..0000000
--- a/anki-official-binary-bundle/install_sh.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1--- install.sh.orig 2022-06-06 18:29:11.117752422 -0500
2+++ install.sh 2022-06-06 18:40:38.153466913 -0500
3@@ -13,9 +13,10 @@
4
5 rm -rf "$PREFIX"/share/anki "$PREFIX"/bin/anki
6 mkdir -p "$PREFIX"/share/anki
7-cp -av --no-preserve=owner,context * "$PREFIX"/share/anki/
8+shopt -s extglob
9+cp -av --no-preserve=owner,context !(*install.sh) "$PREFIX"/share/anki/
10 mkdir -p "$PREFIX"/bin
11-ln -sf "$PREFIX"/share/anki/anki "$PREFIX"/bin/anki
12+ln -sf ../share/anki/anki "$PREFIX"/bin/anki
13 # fix a previous packaging issue where we created this as a file
14 (test -f "$PREFIX"/share/applications && rm "$PREFIX"/share/applications)||true
15 mkdir -p "$PREFIX"/share/pixmaps
16@@ -26,11 +26,4 @@
17 mv -Z anki.desktop "$PREFIX"/share/applications/;\
18 mv -Z anki.1 "$PREFIX"/share/man/man1/)
19
20-xdg-mime install anki.xml --novendor
21-xdg-mime default anki.desktop application/x-colpkg
22-xdg-mime default anki.desktop application/x-apkg
23-xdg-mime default anki.desktop application/x-ankiaddon
24-
25-rm install.sh
26-
27 echo "Install complete. Type 'anki' to run."