Last active
February 28, 2017 00:56
-
-
Save YamashitaRen/25831406ebe7406da8b2770b9962007d to your computer and use it in GitHub Desktop.
Anki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: Yamashita Ren | |
# Contributor: Sławomir Kowalski <[email protected]> | |
# Contributor: Sergej Pupykin <[email protected]> | |
# Contributor: Timm Preetz <[email protected]> | |
# Contributor: Michael 'manveru' Fellinger <[email protected]> | |
# Contributor: Dave Pretty <david dot pretty at gmail dot com> | |
pkgname=anki20 | |
pkgver=2.0.43 | |
pkgrel=1 | |
pkgdesc="Helps you remember facts (like words/phrases in a foreign language) efficiently" | |
url="http://ankisrs.net/" | |
license=('AGPL3') | |
arch=('x86_64') | |
depends=('icu48') | |
optdepends=('mplayer: sound playing') | |
options=(!strip) | |
source=(https://apps.ankiweb.net/downloads/current/anki-$pkgver-amd64.tar.bz2) | |
sha256sums=('8b4174e8c6c5f4ee61c29a7c6270709a959d605ab77588b0f5be3fed216156fa') | |
prepare() { | |
cd "$srcdir"/anki-$pkgver | |
sed -e 's|PREFIX=/usr/local|PREFIX='$pkgdir'/usr|' \ | |
-e /install:/,/uninstall:/{'/rm -rf/d'} \ | |
-e '/ln -sf ${PREFIX}\/share\/anki\/bin\/anki ${PREFIX}\/bin\//d' \ | |
-e '/xdg-mime/d' \ | |
-i Makefile | |
} | |
package() { | |
cd "$srcdir"/anki-$pkgver | |
make install | |
cd "$pkgdir"/usr | |
echo -e '#!/bin/bash\n\ncd /usr/share/anki/bin\n./anki' > bin/anki | |
chmod +x bin/anki | |
rm share/anki/Makefile | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment