void-packages/srcpkgs/anki/template
2016-03-28 17:55:46 -04:00

35 lines
967 B
Bash

# Template file for 'anki'
pkgname=anki
version=2.0.34
revision=1
noarch=yes
depends="python-PyQt4 python-httplib2 python-SQLAlchemy"
pycompile_dirs="/usr/share/anki/anki /usr/share/anki/aqt"
short_desc="Spaced repetition flashcard program"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="AGPL-3"
homepage="http://ankisrs.net"
distfiles="http://ankisrs.net/download/mirror/${pkgname}-${version}.tgz"
checksum=ce70f10efb7deabb5cf5e6e003a3ee0b22a2d37ed24ac6c4d8f4e079b8ae5ff8
do_install() {
vmkdir usr/share/anki
for f in anki aqt designer locale oldanki anki.xml; do
vcopy $f usr/share/anki
done
# thirdparty
vmkdir usr/share/anki/thirdparty
vcopy thirdparty/BeautifulSoup.py usr/share/anki/thirdparty
vcopy thirdparty/send2trash usr/share/anki/thirdparty
# icons
vmkdir usr/share/pixmaps
for p in anki.xpm anki.png; do
vcopy $p usr/share/pixmaps
done
vinstall anki.desktop 644 usr/share/applications
vbin runanki anki
vman anki.1
}