# # Apps Packages for Chakra, part of chakra-project.org # # Maintainer: Adrián Chaves Fernández (Gallaecio) pkgname=anki pkgver=2.0.8 pkgrel=1 pkgdesc='Helps you remember facts (like words/phrases in a foreign language) efficiently.' url='http://ankisrs.net/' license=('GPL3') arch=('x86_64') categories=('utils') screenshot=("http://ankisrs.net/shots/sync.png") install='anki.install' depends=('python2-beautifulsoup' 'pyqt' 'python-pysqlite' 'python2-simplejson' 'python2-sqlalchemy') optdepends=('python-matplotlib: show graphs.' 'sox: audio recording.' 'pyaudio: audio recording.') source=("http://ankisrs.net/download/mirror/$pkgname-$pkgver.tgz") md5sums=('ee93fc1d1dce0d0b68431ec117d5f556') build() { cd $srcdir/anki-$pkgver sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' runanki rm -f anki.bat } package() { cd "${srcdir}/${pkgname}-${pkgver}" mkdir -p $pkgdir/usr/{bin,share/{anki,pixmaps,applications,man/man1}} cp -av * $pkgdir/usr/share/anki/ # Desktop integration. KDE needs Qt in Categories desktop-file-install --dir "${pkgdir}/usr/share/applications" \ --add-category='Qt' \ ${pkgname}.desktop cd $pkgdir/usr/share/anki && ( mv runanki ../../bin/ mv anki.xpm anki.png ../pixmaps/ mv anki.desktop ../applications/ mv anki.1 ../man/man1/ ) }