[go: up one dir, main page]

File: rules

package info (click to toggle)
libkexif 0.2.3-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,020 kB
  • ctags: 209
  • sloc: sh: 9,906; perl: 2,760; cpp: 1,157; makefile: 151
file content (42 lines) | stat: -rwxr-xr-x 1,336 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

DEBVERSION:=$(shell head -n 1 debian/changelog \
                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')

FILENAME := libkexif_$(UPVERSION).orig.tar.gz
URL := http://ovh.dl.sourceforge.net/kipi/libkexif-$(UPVERSION).tar.bz2

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/kde.mk
include /usr/share/cdbs/1/rules/utils.mk

## Rename libexif.po -> libkexif${major}.po
major = 1
install/libkexif1::
	for f in debian/tmp/usr/share/locale/*/LC_MESSAGES/libkexif.mo; do \
		mv $$f "`dirname $$f`/`basename $$f .mo`$(major).mo"; \
	done

clean ::
	rm -f po/*/*.gmo

buildprep: clean apply-patches
	make -f admin/Makefile.common dist
	debian/rules clean

print-version:
	@@echo "Debian version:          $(DEBVERSION)"
	@@echo "Upstream version:        $(UPVERSION)"

get-orig-source:
	@@dh_testdir
	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
	@@echo Downloading $(FILENAME) from $(URL) ...
	@@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME).bz2 $(URL)
	@@echo bzcat ../tarballs/$(FILENAME).bz2 | gzip -9 > ../tarballs/$(FILENAME)
	@@bzcat ../tarballs/$(FILENAME).bz2 | gzip -9 > ../tarballs/$(FILENAME)
	@@rm -rf ../tarballs/$(FILENAME).bz2