11 |
|
|
12 |
include /usr/share/dpatch/dpatch.make |
include /usr/share/dpatch/dpatch.make |
13 |
|
|
14 |
|
CURRENT:=$(shell dpkg-parsechangelog | perl -ne 'print if s/^Version: ([0-9.]+).dfsg.*$$/$$1/') |
15 |
|
URL:=$(shell uscan -report | grep -Eo "http://qa.debian.org/watch/sf.php/pdfbox/PDFBox-.+\.zip") |
16 |
|
|
17 |
|
ifeq ($(strip $(URL)),) |
18 |
|
URL:="http://qa.debian.org/watch/sf.php/pdfbox/PDFBox-$(CURRENT).zip" |
19 |
|
endif |
20 |
|
|
21 |
|
VERSION=$(shell echo $(URL) | perl -pe 's/.+PDFBox-(.+)\.zip/$$1/g') |
22 |
|
TMPDIR:=$(shell mktemp -d) |
23 |
|
|
24 |
|
get-orig-source: |
25 |
|
wget -q -P$(TMPDIR) $(URL) |
26 |
|
unzip $(TMPDIR)/*.zip -d $(TMPDIR)/libpdfbox-java-$(VERSION) |
27 |
|
rm -r $(TMPDIR)/libpdfbox-java-$(VERSION)/PDFBox-$(VERSION)/external |
28 |
|
cd $(TMPDIR)/libpdfbox-java-$(VERSION)/ && tar cfz libpdfbox-java-$(VERSION).dfsg.tar.gz PDFBox-$(VERSION) && cd $(CURDIR) |
29 |
|
mv $(TMPDIR)/libpdfbox-java-$(VERSION)/libpdfbox-java-$(VERSION).dfsg.tar.gz $(CURDIR)/../ |
30 |
|
rm -rf $(TMPDIR) |
31 |
|
|
32 |
configure: configure-stamp |
configure: configure-stamp |
33 |
|
|
34 |
configure-stamp: patch |
configure-stamp: patch |