desktop/anki/PKGBUILD

47 lines
1.4 KiB
Bash
Raw Normal View History

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=anki
pkgver=2.0.8
2012-11-12 04:59:59 +08:00
pkgrel=1
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'
depends=('python2-beautifulsoup' 'pyqt' 'python-pysqlite' 'python2-simplejson' 'python2-sqlalchemy')
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")
md5sums=('ee93fc1d1dce0d0b68431ec117d5f556')
2012-11-12 04:59:59 +08:00
build() {
cd $srcdir/anki-$pkgver
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' runanki
2012-11-12 04:59:59 +08:00
rm -f anki.bat
}
package() {
2012-09-07 15:00:53 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
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/
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 && (
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/
)
}
2012-11-12 04:59:59 +08:00