2
# Sample debian/rules that uses debhelper.
3
# This file was originally written by Joey Hess and Craig Small.
4
# As a special exception, when this file is copied by dh-make into a
5
# dh-make output file, you may use that output file without restriction.
6
# This special exception was added by Craig Small in version 0.37 of dh-make.
8
# Uncomment this to turn on verbose mode.
11
# ID from src/Makefile.xulrunner
12
ICEWEASEL_ID={ec8030f7-c20a-464f-9b0e-13a3a9e97384}
14
EXT_ID={b676e3ff-cda7-4e0c-b2b8-74e4bb40a67a}
15
EXTENSION_DIR=/usr/share/mozilla/extensions/$(ICEWEASEL_ID)/$(EXT_ID)
17
configure: configure-stamp
27
build-stamp: configure-stamp
30
# Add here commands to compile the package.
31
$(MAKE) -f Makefile.xulrunner extension-files
39
rm -f build-stamp configure-stamp
41
# Add here commands to clean up after the build process.
42
$(MAKE) -f Makefile.xulrunner clean
52
# Add here commands to install the package
53
echo "# Empty chrome manifest" > chrome.manifest
54
install -m 644 src/components/libmozvoikko.so debian/mozvoikko/usr/lib/mozvoikko/
55
mkdir -p debian/mozvoikko/$(EXTENSION_DIR)
56
install -m 644 src/install.rdf debian/mozvoikko/$(EXTENSION_DIR)/
57
install -m 644 chrome.manifest debian/mozvoikko/$(EXTENSION_DIR)/
58
dh_link usr/lib/mozvoikko $(EXTENSION_DIR)/components
61
# Build architecture-independent files here.
62
binary-indep: build install
63
# We have nothing to do by default.
65
# Build architecture-dependent files here.
66
binary-arch: build install
69
dh_installchangelogs ChangeLog
79
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(shell pkg-config --variable=sdkdir libxul)/sdk/lib/ dh_shlibdeps
84
binary: binary-indep binary-arch
85
.PHONY: build clean binary-indep binary-arch binary install configure
6
override_dh_auto_build:
7
make -f Makefile.xulrunner XULRUNNER_SDK_DIR=/usr/lib/xulrunner-devel-`xulrunner --gre-version`
9
override_dh_auto_install:
10
install-xpi src/mozvoikko.xpi
12
override_dh_auto_clean:
13
make -f Makefile.xulrunner clean