| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
PACKAGE=flim |
| 7 |
ELDIR=$(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE) |
| 8 |
|
| 9 |
get-orig-source: |
| 10 |
wget -O upstream.tar.gz https://github.com/wanderlust/flim/tarball/flim-1_14-wl |
| 11 |
mv -f upstream.tar.gz `LC_ALL=C tar ztvf upstream.tar.gz --utc | perl -ne 'if (/ (\d\d\d\d)-(\d\d)-(\d\d) /) {print "flim_1.14.9+0.$$1$$2$$3.orig.tar.gz\n"; exit}'` |
| 12 |
|
| 13 |
build-indep: build-indep-stamp |
| 14 |
build-indep-stamp: |
| 15 |
dh_testdir |
| 16 |
makeinfo mime-en.texi |
| 17 |
makeinfo mime-ja.texi |
| 18 |
touch $@ |
| 19 |
|
| 20 |
build-arch: |
| 21 |
|
| 22 |
build: build-indep build-arch |
| 23 |
|
| 24 |
clean: |
| 25 |
dh_testdir |
| 26 |
dh_testroot |
| 27 |
rm -f *build*-stamp |
| 28 |
rm -f *.info .\#* debian/.\#* |
| 29 |
|
| 30 |
dh_clean |
| 31 |
|
| 32 |
install: build-indep |
| 33 |
dh_testdir |
| 34 |
dh_testroot |
| 35 |
dh_prep |
| 36 |
dh_installdirs |
| 37 |
|
| 38 |
cp Makefile FLIM-* *.el $(ELDIR)/ |
| 39 |
rm -f $(ELDIR)/FLIM-API* |
| 40 |
|
| 41 |
|
| 42 |
for f in mailcap.el smtpmail.el; do \ |
| 43 |
if [ -f $(ELDIR)/$$f ]; then rm -f $(ELDIR)/$$f; fi; \ |
| 44 |
done |
| 45 |
|
| 46 |
binary-indep: install |
| 47 |
dh_testdir |
| 48 |
dh_testroot |
| 49 |
|
| 50 |
dh_installdocs |
| 51 |
|
| 52 |
dh_installemacsen --priority 50 |
| 53 |
dh_installinfo |
| 54 |
dh_installchangelogs |
| 55 |
dh_compress |
| 56 |
dh_fixperms |
| 57 |
dh_installdeb |
| 58 |
dh_shlibdeps |
| 59 |
dh_gencontrol |
| 60 |
dh_md5sums |
| 61 |
dh_builddeb |
| 62 |
|
| 63 |
binary-arch: |
| 64 |
|
| 65 |
binary: binary-indep binary-arch |
| 66 |
.PHONY: build-indep build-arch build clean binary-indep binary-arch binary install |