summaryrefslogtreecommitdiff
path: root/debian/rules
blob: a36b0b00e6bdc48be75a6f6c14c2e23c32756c42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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)

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

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