fix make install for source

This commit is contained in:
Damien Elmes 2017-01-17 11:25:55 +10:00
parent 9db8fb66e9
commit ca9a6fb86c
2 changed files with 8 additions and 1 deletions

View File

@ -10,7 +10,7 @@ install:
mkdir -p ${DESTDIR}${PREFIX}/share/anki mkdir -p ${DESTDIR}${PREFIX}/share/anki
cp -av * ${DESTDIR}${PREFIX}/share/anki/ cp -av * ${DESTDIR}${PREFIX}/share/anki/
cd ${DESTDIR}${PREFIX}/share/anki && (\ cd ${DESTDIR}${PREFIX}/share/anki && (\
mv runanki ${DESTDIR}${PREFIX}/local/bin/anki;\ mv tools/runanki.system ${DESTDIR}${PREFIX}/local/bin/anki;\
test -d ${DESTDIR}${PREFIX}/share/pixmaps &&\ test -d ${DESTDIR}${PREFIX}/share/pixmaps &&\
mv anki.xpm anki.png ${DESTDIR}${PREFIX}/share/pixmaps/;\ mv anki.xpm anki.png ${DESTDIR}${PREFIX}/share/pixmaps/;\
mv anki.desktop ${DESTDIR}${PREFIX}/share/applications;\ mv anki.desktop ${DESTDIR}${PREFIX}/share/applications;\

7
tools/runanki.system Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env python3
import sys
sys.path.append("/usr/share/anki")
import aqt
aqt.run()