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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#!/usr/bin/make -f
THEMES := white black jovotek
build: build-stamp
build-arch: build
build-indep: build
build-stamp:
dh_testdir
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
rm -rf upstream/jigl-2.0.1
for i in $(THEMES) ; do \
rm -rf themes/$$i ;\
done
dh_clean
extract:
for i in $(THEMES) ; do \
tar zxvf themes/$$i.tar.gz -C themes ;\
done
tar zxvf upstream/jigl-2.0.1.tar.gz -C upstream
install: build
dh_testdir
dh_testroot
dh_prep
install -D -m 0755 upstream/jigl-2.0.1/jigl.pl $(CURDIR)/debian/jigl/usr/bin/jigl
patch -i $(CURDIR)/debian/vs-multicpu.patch $(CURDIR)/debian/jigl/usr/bin/jigl
install -m 0755 upstream/rotate $(CURDIR)/debian/jigl/usr/bin/
# csh may be ugly, but it's a known issue. Override the lintian warnings.
mkdir -p $(CURDIR)/debian/jigl/usr/share/lintian/overrides
cp debian/lintian-overrides $(CURDIR)/debian/jigl/usr/share/lintian/overrides/jigl
# This does nothing, but must return successfully.
binary-arch:
# Build architecture-independent files here.
binary-indep: extract build install
dh_testdir
dh_testroot
dh_installdocs -n
dh_installchangelogs upstream/jigl-2.0.1/ChangeLog
dh_installman debian/jigl.1 debian/rotate.1
dh_compress
mkdir $(CURDIR)/debian/jigl/usr/share/doc/jigl/themes
for i in $(THEMES) ; do \
cp -a themes/$$i $(CURDIR)/debian/jigl/usr/share/doc/jigl/themes ;\
done
dh_fixperms
dh_installdeb
dh_perl
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep
.PHONY: build clean binary-indep binary install configure binary-arch
|