Codebase list aspell-ar-large / bea2e25
Update rules file, use debhelper 9 format Lior Kaplan 5 years ago
3 changed file(s) with 12 addition(s) and 66 deletion(s). Raw diff Collapse all Expand all
11 Section: text
22 Priority: optional
33 Maintainer: Lior Kaplan <kaplan@debian.org>
4 Build-Depends: debhelper (>= 5)
4 Build-Depends: debhelper (>= 9)
55 Build-Depends-Indep: aspell (>= 0.60.4), dictionaries-common-dev (>= 1.11.2)
66 Standards-Version: 3.9.4
77 Vcs-Browser: https://salsa.debian.org/kaplan/aspell-ar
00 #!/usr/bin/make -f
11
2 # Uncomment this to turn on verbose mode.
3 #export DH_VERBOSE=1
2 DICT_LANG = ar-large
3 BASEDIR = `pwd`/debian/aspell-ar-large
44
5 # This has to be exported to make some magic below work.
6 export DH_OPTIONS
5 %:
6 dh $@
77
8 DICT_LANG = ar-large
9 DEB_DESTDIR = `pwd`/debian/aspell-ar-large
10
11 configure-stamp:
12 dh_testdir
8 override_dh_auto_configure:
139 ./configure
1410 cp ar.cwl ar-large.cwl
1511 cp debian/ar-large.dat .
1612 cp ar_affix.dat ar-large_affix.dat
1713 cp l-ar.cset l-ar-large.cset
1814 cp l-ar.cmap l-ar-large.cmap
19 touch configure-stamp
2015
21 build: build-arch build-indep
22
23 build-arch: build-stamp
24
25 build-indep: build-stamp
26
27 build-stamp: configure-stamp
28 dh_testdir
29 $(MAKE)
30 touch build-stamp
31
32 clean: clean-source
33
34 clean-source:
35 dh_testdir
36 dh_testroot
37 rm -f build-stamp configure-stamp
16 override_dh_auto_clean:
3817 [ ! -f Makefile ] || $(MAKE) distclean
3918 rm -f Makefile
4019 rm -f ar-large.cwl
4423 rm -f l-ar-large.cmap
4524 dh_clean
4625
47 install: DH_OPTIONS=
48 install: build
49 dh_testdir
50 dh_testroot
51 dh_clean -k
52 dh_installdirs
53 # copy files from the debian dir so 'make install' with do the rest
26 override_dh_auto_install:
5427 cp debian/arabic-large.alias debian/ar-large.multi debian/ar-large.dat .
55 $(MAKE) DESTDIR=$(DEB_DESTDIR) install
56 gzip -9c ar-large.cwl > $(DEB_DESTDIR)/usr/share/aspell/ar-large.cwl.gz
57 rm -f $(DEB_DESTDIR)/usr/lib/aspell/ar-large.rws
58
28 $(MAKE) DESTDIR=$(BASEDIR) install
29 rm -f $(BASEDIR)/usr/lib/aspell/ar-large.rws
30 gzip -9c ar-large.cwl > $(BASEDIR)/usr/share/aspell/ar-large.cwl.gz
5931 installdeb-aspell
60
61
62 # Build architecture-independent files here.
63 # Pass -i to all debhelper commands in this target to reduce clutter.
64 binary-indep: DH_OPTIONS=-i
65 binary-indep: build install
66 dh_testdir
67 dh_testroot
68 dh_installdocs
69 dh_installexamples
70 dh_installchangelogs
71 dh_link
72 dh_compress
73 dh_fixperms
74 dh_installdeb
75 dh_gencontrol
76 dh_md5sums
77 dh_builddeb
78
79 # Build architecture-dependent files here.
80 binary-arch: DH_OPTIONS=-a
81 binary-arch: build install
82 # nothing.
83
84 binary: binary-indep binary-arch
85 .PHONY: build clean binary-indep binary-arch binary install configure