Lines 1-5
Link Here
|
1 |
# you presumably will only have to change the three first lines below |
1 |
# you presumably will only have to change the three first lines below |
2 |
DESTDIR = /usr/local |
2 |
DESTDIR = ${D}usr |
3 |
python = /usr/bin/python |
3 |
python = /usr/bin/python |
4 |
oopath = /usr/lib/openoffice/program |
4 |
oopath = /usr/lib/openoffice/program |
5 |
# |
5 |
# |
Lines 7-13
Link Here
|
7 |
exec_prefix = $(prefix) |
7 |
exec_prefix = $(prefix) |
8 |
bindir = $(exec_prefix)/bin |
8 |
bindir = $(exec_prefix)/bin |
9 |
datadir = $(prefix)/share |
9 |
datadir = $(prefix)/share |
10 |
sysconfdir = /etc |
10 |
sysconfdir = ${D}etc |
11 |
mandir = $(prefix)/share/man |
11 |
mandir = $(prefix)/share/man |
12 |
man1dir = $(mandir)/man1 |
12 |
man1dir = $(mandir)/man1 |
13 |
|
13 |
|
Lines 42-64
Link Here
|
42 |
chmod 755 $(datadir)/bibus/bibusStart.py |
42 |
chmod 755 $(datadir)/bibus/bibusStart.py |
43 |
|
43 |
|
44 |
# basic doc files |
44 |
# basic doc files |
45 |
install -m755 -d $(datadir)/doc/bibus |
45 |
install -m755 -d $(datadir)/doc/${PF} |
46 |
install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/bibus |
46 |
install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/${PF} |
47 |
|
47 |
|
48 |
# generating bibus.cfg file |
48 |
# generating bibus.cfg file |
49 |
echo '[PATH]' > $(datadir)/bibus/bibus.cfg |
49 |
echo '[PATH]' > $(datadir)/bibus/bibus.cfg |
50 |
echo 'python = $(python)' >> $(datadir)/bibus/bibus.cfg |
50 |
echo 'python = $(python)' >> $(datadir)/bibus/bibus.cfg |
51 |
echo 'oopath = $(oopath)' >> $(datadir)/bibus/bibus.cfg |
51 |
echo 'oopath = $(oopath)' >> $(datadir)/bibus/bibus.cfg |
52 |
echo 'docdir = $(datadir)/doc/bibus/html' >> $(datadir)/bibus/bibus.cfg |
52 |
echo 'docdir = $(datadir)/doc/${PF}/html' >> $(datadir)/bibus/bibus.cfg |
53 |
echo 'licence = $(datadir)/doc/bibus/copying' >> $(datadir)/bibus/bibus.cfg |
53 |
echo 'licence = $(datadir)/doc/${PF}/copying' >> $(datadir)/bibus/bibus.cfg |
54 |
echo 'localedir = $(datadir)/locale' >> $(datadir)/bibus/bibus.cfg |
54 |
echo 'localedir = /usr/share/locale' >> $(datadir)/bibus/bibus.cfg |
55 |
echo 'systemconf = $(sysconfdir)/bibus.config' >> $(datadir)/bibus/bibus.cfg |
55 |
echo 'systemconf = /etc/bibus.config' >> $(datadir)/bibus/bibus.cfg |
56 |
endef |
56 |
endef |
57 |
|
57 |
|
58 |
define install-doc-en |
58 |
define install-doc-en |
59 |
# copying docs in from Docs/html/en/ for bibus-doc-en |
59 |
# copying docs in from Docs/html/en/ for bibus-doc-en |
60 |
cd Docs;\ |
60 |
cd Docs;\ |
61 |
find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/bibus/'{}' ';' |
61 |
find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/${PF}/'{}' ';' |
62 |
endef |
62 |
endef |
63 |
|
63 |
|
64 |
define compile |
64 |
define compile |
Lines 85-91
Link Here
|
85 |
echo "find $(datadir)/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh |
85 |
echo "find $(datadir)/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh |
86 |
echo "rm $(sysconfdir)/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh |
86 |
echo "rm $(sysconfdir)/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh |
87 |
echo "rm $(man1dir)/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh |
87 |
echo "rm $(man1dir)/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh |
88 |
echo "rm -rf $(datadir)/doc/bibus" >> $(datadir)/bibus/Setup/uninstall.sh |
88 |
echo "rm -rf $(datadir)/doc/${PF}" >> $(datadir)/bibus/Setup/uninstall.sh |
89 |
echo "rm $(datadir)/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh |
89 |
echo "rm $(datadir)/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh |
90 |
echo "rm $(datadir)/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh |
90 |
echo "rm $(datadir)/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh |
91 |
chmod 744 $(datadir)/bibus/Setup/uninstall.sh |
91 |
chmod 744 $(datadir)/bibus/Setup/uninstall.sh |