void-packages/srcpkgs/anki/template
Peter Bui 1547acd1c1 anki: update to 2.0.46
Closes: #7361 [via git-merge-pr]
2017-09-02 14:51:46 -07:00

34 lines
982 B
Bash

# Template file for 'anki'
pkgname=anki
version=2.0.46
revision=1
noarch=yes
depends="python-PyQt4-webkit 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/downloads/current/${pkgname}-${version}-source.tgz"
checksum=191e05cad5775ee276253bbcfa1560b3d7e3d4ef7f0b6b65a5260369570e0506
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
}