summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 6f744a418fada0fbb99712b6fa4d1d5ffc7f09f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

HAVE_ICEDTEA = $(shell apt-cache show icedtea6-plugin 2>/dev/null | grep -q '^Version:' && echo y)
HAVE_LIBREOFFICE = $(shell apt-cache show libreoffice 2>/dev/null | grep -q '^Version:' && echo y)

ifeq ($(HAVE_ICEDTEA),y)
    binary-predeb/debathena-extra-software::
	echo "debathena-java-plugin=icedtea6-plugin" >> debian/debathena-extra-software.substvars
endif

ifeq ($(HAVE_LIBREOFFICE),y)
    install/debathena-extra-software::
	dh_install debian/ooffice usr/bin
    binary-predeb/debathena-extra-software::
	echo "debathena-cool-kids-office-suite=libreoffice" >> debian/debathena-extra-software.substvars
else
    binary-predeb/debathena-extra-software::
	echo "debathena-cool-kids-office-suite=openoffice.org" >> debian/debathena-extra-software.substvars
endif

include /usr/share/cdbs/1/rules/debhelper.mk