#!/usr/bin/make -f # debian/rules for kohana2 # # Written by Sven Velt and Sebastian Harl . # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 get-orig-source: uscan --force --verbose --repack --rename build: build-stamp build-stamp: dh_testdir touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs cp -a system $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/ # remove DejaVu-Fonts and create symlink rm -rf $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts ln -s /usr/share/fonts/truetype/ttf-dejavu \ $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts # fix permissions for file in `find $(CURDIR)/debian/libkohana2-php -name '*.php'`; do \ chmod 644 $$file; \ done # remove empty directories rmdir debian/libkohana2-php/usr/share/php/kohana2/system/i18n/el_GR/ rmdir debian/libkohana2-php/usr/share/php/kohana2/system/tests/ binary-indep: install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_lintian dh_installman dh_link dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary-arch: install binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure