File: rules

package info (click to toggle)
libjs-swfupload 2.2.0.1%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 428 kB
  • ctags: 314
  • sloc: makefile: 26; xml: 17
file content (42 lines) | stat: -rwxr-xr-x 1,025 bytes parent folder | download
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
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PACKAGENAME:=libjs-swfupload
VERSION:=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+).*,\1,p')

ORIG_DIR:=$(PACKAGENAME)_$(VERSION)+ds1
BLANK_DIR:=SWFUpload\ v$(VERSION)\ Core

ORIGTAR:=$(PACKAGENAME)_$(VERSION).orig.tar
DEBTAR :=$(PACKAGENAME)_$(VERSION)+ds1.orig.tar

%:
	dh $@

clean:
	dh_testdir
	dh_testroot
	dh_clean
	rm -rf tmp

build:
	dh_testdir
	mkdir tmp
	rm -f plugins/SWFObject\ License.txt
	cd Flash && as3compile -M SWFUpload -T 9 -X 300 -Y 300 -r 15 SWFUpload.as -o ../tmp/swfupload.swf

get-orig-source:
# get source
	uscan --no-conf --force-download --rename --repack --download-current-version --destdir=.
# unpack and rename
	mkdir -p _unpack
	tar -xzf $(ORIGTAR).gz -C _unpack
	mv _unpack/$(BLANK_DIR) _unpack/$(ORIG_DIR)
# remove dfsg non complient files
	rm -f _unpack/$(ORIG_DIR)/Flash/swfupload.swf
# repack
	tar -cf - -C _unpack $(ORIG_DIR) | gzip -9 - > $(DEBTAR).gz
	rm -rf _unpack