File: rules

package info (click to toggle)
imhangul3 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,624 kB
  • sloc: sh: 11,035; ansic: 2,195; python: 225; makefile: 69
file content (25 lines) | stat: -rwxr-xr-x 910 bytes parent folder | download
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
#!/usr/bin/make -f
#export DH_VERBOSE=1

%:
	dh $@ --with quilt --with autoreconf

# correct the wrong install path by upstream
IMAPIVER ?= $(shell pkg-config --variable=gtk_binary_version gtk+-3.0)
MODULEDIR = /usr/lib/$(DEB_HOST_MULTIARCH)/gtk-3.0/$(IMAPIVER)/immodules
BINPKG = imhangul-gtk3

override_dh_auto_configure:
	dh_auto_configure -- --with-default-keyboard=2 \
	    --with-gtk-im-module-dir=$(MODULEDIR)

override_dh_makeshlibs:
	dh_makeshlibs -Xim-hangul.so

override_dh_auto_install:
	dh_auto_install
	# *.la file is not required for immodules
	find $(CURDIR)/debian/$(BINPKG)/ -name *.la -exec rm \{} \;
	# install imhangul.immodules
	install -d $(CURDIR)/debian/$(BINPKG)/usr/lib/$(DEB_HOST_MULTIARCH)/gtk-3.0/$(IMAPIVER)/immodule-files.d
	install -m644 debian/imhangul.immodules $(CURDIR)/debian/$(BINPKG)/usr/lib/$(DEB_HOST_MULTIARCH)/gtk-3.0/$(IMAPIVER)/immodule-files.d/imhangul.immodules