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