void-packages/srcpkgs/anki/template
2018-06-29 08:24:08 +02:00

36 lines
1,018 B
Bash

# Template file for 'anki'
pkgname=anki
version=2.0.52
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.0-or-later"
homepage="https://apps.ankiweb.net"
distfiles="https://apps.ankiweb.net/downloads/current/anki-${version}-source.tgz"
checksum=d4d8c0dd473b512faa63e167d7bb89592530699d2365f1d3a737a733efeb5e7a
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
vlicense LICENSE
}