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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#!/usr/bin/make -f
include /usr/share/quilt/quilt.make
PKD = $(abspath $(dir $(MAKEFILE_LIST)))
PKG = 'php-fpdf'
VER = '1.8'
configure: configure-stamp
configure-stamp:
dh_testdir
touch configure-stamp
build: patch build-stamp
build-stamp: $(QUILT_STAMPFN) configure-stamp
dh_testdir
touch build-stamp
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs usr/share/php/fpdf
dh_install fpdf.php font/ makefont/ usr/share/php/fpdf/
dh_link usr/share/php/fpdf usr/share/fpdf
dh_link usr/share/php/fpdf/fpdf.php usr/share/php/fpdf.php
#find tutorial/ -path '*php' -print0 | xargs -0 perl -i -p -e 's/\.\.\/fpdf.php/fpdf.php/'
find $(DEB_DESTDIR) -type f -and -perm /111 -print0 | xargs -0ri chmod a-x '{}'
binary-arch:
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs changelog.htm
dh_installexamples
dh_installman
dh_compress --exclude=20k_c1.txt --exclude=20k_c2.txt
dh_strip
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep
build-arch: build
build-indep: build
get-orig-source: $(info I: $(PKG)_$(VER))
uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
.PHONY: build clean binary-indep binary install configure get-orig-source
|