File: rules

package info (click to toggle)
compiz-plugins-main 2%3A0.8.18-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,984 kB
  • sloc: ansic: 27,662; sh: 4,744; cpp: 1,420; makefile: 692
file content (24 lines) | stat: -rwxr-xr-x 751 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/architecture.mk

%:
	dh $@

# Detect which package is provided by compiz-core:
COMPIZCORE_DEPENDS := $(shell dpkg-query --showformat='$${Provides}\n' -W compiz-core)

override_dh_auto_configure:
	intltoolize --copy --force --automake
	dh_auto_configure -- --disable-static --libdir=/usr/lib

override_dh_install:
# remove unneeded .la files
	find $(CURDIR)/debian -type f -name '*.la' -print0 | xargs -0 rm -f
	dh_install
	mkdir debian/compiz-plugins-main/usr/lib/$(DEB_HOST_MULTIARCH)
	mv debian/compiz-plugins-main/usr/lib/pkgconfig debian/compiz-plugins-main/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig

override_dh_gencontrol:
	dh_gencontrol -- -Vcompizcore:Depends=$(COMPIZCORE_DEPENDS)