summaryrefslogtreecommitdiffstats
path: root/kexi/debian/rules
blob: bc42b136ba65677d09942c3a2b7f8c7f91c1f1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

### CDBS INCLUDES
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/kde.mk

### VARIABLES
DEB_DH_MAKESHLIBS_ARGS_ALL := -n

PACKAGES_WITH_LIBS 	   := kexi kexi-postgresql-driver kexi-mysql-driver \
			      libkexi-dev

DEB_SHLIBDEPS_INCLUDE = $(foreach p,$(PACKAGES_WITH_LIBS),debian/$(p)/usr/lib:debian/$(p)/usr/lib/trinity)

# We need this commented out until sqlite 3.0 is available in Debian
# DEB_EXTRA_CONNFIGURE_FLAGS := --without-included-sqlite

### POST-INSTALL HACKING
# Make directories in /usr/share/doc be symlinks for packages other than amarok
common-binary-post-install-arch::
	for p in $(filter-out kexi,$(DEB_ALL_PACKAGES)); do \
          rm -rf debian/$$p/usr/share/doc/$$p; \
          ln -sf kexi debian/$$p/usr/share/doc/$$p; \
        done

	# Check for non installed files
	dh_install --no-act --list-missing

binary-install/kexi::
	install -p -D -m644 debian/kformdesigner.menu debian/kexi/usr/lib/menu/kformdesigner.menu