source: language-pack-lliurex-valencian/trunk/fuentes/debian/rules @ 2508

Last change on this file since 2508 was 2484, checked in by joamuran, 4 years ago

Added files

  • Property svn:executable set to *
File size: 879 bytes
Line 
1#!/usr/bin/make -f
2
3# Uncomment this to turn on verbose mode.
4#export DH_VERBOSE=1
5
6PKGNAME=$(shell grep "^Package: " debian/control | head -1 | cut -f 2 -d\ )
7PKG=$(shell pwd)/debian/$(PKGNAME)
8
9
10LOCALEDIR="$(PKG)/usr/share/locale/ca_ES@valencia/LC_MESSAGES/"
11
12build: 
13        dh_testdir
14
15build-arch:
16        build
17
18build-indep:
19        build
20
21clean:
22        dh_testdir
23        dh_testroot
24        dh_clean
25
26binary-arch:
27
28binary-indep:
29        dh_testdir
30        dh_testroot
31        dh_installdirs
32        dh_link -i
33       
34        # Create locale-langpack
35        mkdir -p $(LOCALEDIR)
36       
37        find data -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -f -o $(LOCALEDIR)/\$$(basename \$${N%.po}.mo) \$$N" \;
38               
39        dh_install -i
40        dh_installdocs -i
41        dh_installchangelogs -i
42        dh_compress -i
43        dh_fixperms -i
44        dh_installdeb -i
45        dh_gencontrol -i
46        dh_md5sums -i
47        dh_builddeb -i  -- -Z bzip2
48
49binary: binary-arch binary-indep
50
51.PHONY: build clean binary-indep binary-arch binary
52
Note: See TracBrowser for help on using the repository browser.