~landronimirc/elementaryicons/xubuntu-icon-theme-debian-master

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Liviu Andronic
  • Date: 2013-07-06 18:40:30 UTC
  • Revision ID: landronimirc@gmail.com-20130706184030-sav5gjvpmlbndypl
init commit for daily recipe

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
%:
 
4
        dh $@
 
5
 
 
6
#override_dh_auto_install:
 
7
#       dh_auto_install
 
8
#       for d in $$(find $(CURDIR)/debian/elementary-icon-theme/usr/share/icons -mindepth 2 -maxdepth 2 -type d) ; do \
 
9
#               (cd $$d; for c in *; do /usr/lib/icon-naming-utils/icon-name-mapping -c $$c; done); \
 
10
#       done
 
11
#       # Make lintian happy by not installing extra copyright files.
 
12
#       find . -name "COPYING" -delete
 
13
#       # Delete empty directories
 
14
#       find -type d -empty -delete
 
15
#       # Make sure svg files aren't executable.
 
16
#       find . -type f -executable -iname '*.svg' -exec chmod a-x '{}' ';'
 
17
 
 
18
#override_dh_builddeb:
 
19
#       dh_builddeb -- -Zxz
 
20
 
 
21
# Updates the PNG conversion of our theme
 
22
# Needs git, gcc, gtk+-2.0, libxfce4ui-1, gdk-pixbuf-2.0, librsvg2-common
 
23
#update-elementary-icons:
 
24
override_dh_install:
 
25
        dh_install
 
26
        make -C $(CURDIR)/debian/svgtopng
 
27
        ls -d $(CURDIR)
 
28
        pwd
 
29
        (cd $(CURDIR)/debian/svgtopng && mkdir wip && cp pngtheme.sh svgtopng ./wip)
 
30
        pwd
 
31
        mkdir -p $(CURDIR)/debian/elementary-xfce-icon-theme/usr/share/icons/
 
32
        for d in elementary-xfce-darker elementary-xfce-dark elementary-xfce; do \
 
33
                ls -d $(CURDIR) && \
 
34
                pwd && \
 
35
                cp -a $(CURDIR)/$$d $(CURDIR)/debian/svgtopng/wip && \
 
36
                #make -C $(CURDIR)/debian/svgtopng convert ICONDIR=wip/$$d && \
 
37
                (cd $(CURDIR)/debian/svgtopng/wip && ./pngtheme.sh $$d) && \
 
38
                pwd && \
 
39
                rm -rf $(CURDIR)/debian/elementary-xfce-icon-theme/usr/share/icons/$$d && \
 
40
                rm -f $(CURDIR)/debian/svgtopng/wip/$$d/LICENSE && \
 
41
                cp -a $(CURDIR)/debian/svgtopng/wip/$$d $(CURDIR)/debian/elementary-xfce-icon-theme/usr/share/icons/. ; \
 
42
        done
 
43
        cp -a $(CURDIR)/debian/svgtopng/wip $(CURDIR)/debian/svgtopng/wip.bak
 
44
        rm -rf $(CURDIR)/debian/svgtopng/wip
 
45
        #make -C $(CURDIR)/debian/svgtopng clean