File: rules

package info (click to toggle)
gnome-themes-extras 0.8.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 22,532 kB
  • ctags: 32
  • sloc: sh: 10,896; xml: 2,731; makefile: 1,517; ansic: 8
file content (33 lines) | stat: -rwxr-xr-x 1,108 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
25
26
27
28
29
30
31
32
33
#! /usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk

DEB_COMPRESS_EXCLUDE := copyright

DEB_CONFIGURE_EXTRA_FLAGS := PKG_CONFIG_PATH=./debian

EXTRA_TARBALLS = debian/lush-galaxy-metacity.tgz
dest_dir=$(CURDIR)/debian/gnome-themes-extras/usr

%.tgz: %.tgz.uue
	uudecode -o $@ $<

clean::
	rm -f $(EXTRA_TARBALLS)

binary-post-install/gnome-themes-extras:: $(EXTRA_TARBALLS)
# Remove Smooth and Industrial, we depend on them
	rm -rf $(dest_dir)/lib $(dest_dir)/share/*/Industrial

# Add the Galaxy metacity theme
	(cd $(dest_dir)/share/themes && for i in $(EXTRA_TARBALLS); do tar xzf $(CURDIR)/$$i; done)

# Eliminate all Illustrator nonstandard stuff
	find $(dest_dir)/share/icons -type f -name \*.svg -exec perl -pi -e \
	 's/adobe-blending-mode:[a-z]+\;//;undef $$/;s/\<a:midPointStop.*?\/\>//sg;s/\<midPointStop.*?\/\>//sg' \{} \;

# Remove inheritance from icon themes
	perl -pi -e "s/^Inherits=.*\n//" $(dest_dir)/share/icons/*/index.theme