diff options
author | Sławomir Kowalski | 2017-02-09 13:10:18 +0100 |
---|---|---|
committer | Sławomir Kowalski | 2017-02-09 13:13:22 +0100 |
commit | 74fe85bb38a7a53a8dbe2d8e9d238325332ae1ba (patch) | |
tree | 2723b4d9cb74b119dbeb49dfcf22c525a613caea | |
download | aur-74fe85bb38a7a53a8dbe2d8e9d238325332ae1ba.tar.gz |
Import PKGBUILD for last 2.0 ver from community
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6705c41d915c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = anki20 + pkgdesc = Helps you remember facts (like words/phrases in a foreign language) efficiently + pkgver = 2.0.41 + pkgrel = 1 + url = http://ankisrs.net/ + arch = any + license = AGPL3 + depends = python2-pyqt4 + depends = python2-beautifulsoup3 + depends = python2-httplib2 + depends = python2-sqlalchemy + optdepends = mplayer: sound playing + source = https://apps.ankiweb.net/downloads/current/anki-2.0.41-source.tgz + sha256sums = f9e8498d62cda2c2892ca2141ec1a318159499c6b280edeaf8c2b95e97e3ab4e + +pkgname = anki20 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..03b1e4f45498 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# $Id$ +# Maintainer: Sławomir Kowalski <suawekk+aur@gmail.com> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Timm Preetz <timm@preetz.us> +# Contributor: Michael 'manveru' Fellinger <m.fellinger@gmail.com> +# Contributor: Dave Pretty <david dot pretty at gmail dot com> + +pkgname=anki20 +pkgver=2.0.41 +pkgrel=1 +pkgdesc="Helps you remember facts (like words/phrases in a foreign language) efficiently" +url="http://ankisrs.net/" +license=('AGPL3') +arch=('any') +depends=('python2-pyqt4' 'python2-beautifulsoup3' 'python2-httplib2' 'python2-sqlalchemy') +optdepends=('mplayer: sound playing') +source=(https://apps.ankiweb.net/downloads/current/anki-$pkgver-source.tgz) +sha256sums=('f9e8498d62cda2c2892ca2141ec1a318159499c6b280edeaf8c2b95e97e3ab4e') + +prepare() { + cd "$srcdir"/anki-$pkgverarchw + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' anki/anki runanki +} + +package() { + cd "$srcdir"/anki-$pkgver + mkdir -p "$pkgdir"/usr/{bin,share/{anki,pixmaps,applications,man/man1}} + cp -av * "$pkgdir"/usr/share/anki/ + cd "$pkgdir"/usr/share/anki && ( + mv runanki ../../bin/anki + mv anki.xpm anki.png ../pixmaps/ + mv anki.desktop ../applications/ + mv anki.1 ../man/man1/ + ) + rm -rf "$pkgdir"/usr/share/anki/{tests,thirdparty/[!s]*,tools,anki.bat} +} |