Code

patches: Added 01-font-path.diff.
[pkg-libkohana2-php.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules for kohana2
3 #
4 # Written by Sven Velt <sven@velt.de> and Sebastian Harl <tokkee@debian.org>.
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
9 get-orig-source:
10         uscan --force --verbose --repack --rename
12 build: build-stamp
13 build-stamp:
14         dh_testdir
16         touch $@
18 clean:
19         dh_testdir
20         dh_testroot
21         rm -f build-stamp configure-stamp
23         dh_clean
25 install: build
26         dh_testdir
27         dh_testroot
28         dh_prep
29         dh_installdirs
31         cp -a system $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/
33         # remove DejaVu-Fonts and create symlink
34         rm -rf $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts
36         # fix permissions
37         for file in `find $(CURDIR)/debian/libkohana2-php -name '*.php'`; do \
38                 chmod 644 $$file; \
39         done
41         # remove empty directories
42         rmdir debian/libkohana2-php/usr/share/php/kohana2/system/i18n/el_GR/
43         rmdir debian/libkohana2-php/usr/share/php/kohana2/system/tests/
45 binary-indep: install
46         dh_testdir
47         dh_testroot
48         dh_installchangelogs
49         dh_installdocs
50         dh_installexamples
51         dh_lintian
52         dh_installman
53         dh_link
54         dh_compress
55         dh_fixperms
56         dh_installdeb
57         dh_gencontrol
58         dh_md5sums
59         dh_builddeb
61 binary-arch: install
63 binary: binary-indep binary-arch
64 .PHONY: build clean binary-indep binary-arch binary install configure