2009-08-04 13:45:06 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
2011-05-29 13:03:42 +02:00
|
|
|
UPSTREAMTAG=upstream/1.1.99.4+ds1
|
2009-08-16 01:06:50 +02:00
|
|
|
|
|
|
|
SOURCEPKG=$(shell dpkg-parsechangelog | sed -n 's/^Source: \(.*\)/\1/p')
|
|
|
|
UPSTREAM=$(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)-[^-]*/\1/p')
|
|
|
|
ORIG=${SOURCEPKG}_${UPSTREAM}.orig.tar.gz
|
2009-08-04 13:45:06 +02:00
|
|
|
|
2010-05-24 22:54:40 +02:00
|
|
|
export CONFIG_SHELL=/bin/bash
|
|
|
|
|
2009-08-04 13:45:06 +02:00
|
|
|
%:
|
2009-08-15 20:29:21 +02:00
|
|
|
dh $@
|
|
|
|
|
2009-08-21 16:05:54 +02:00
|
|
|
override_dh_auto_install:
|
|
|
|
make install DESTDIR=$(CURDIR)/debian/tmp
|
2010-08-03 19:27:53 +02:00
|
|
|
install --mode=0755 --owner=root test/syncevo-http-server.py \
|
|
|
|
$(CURDIR)/debian/tmp/usr/bin/syncevo-http-server
|
2009-08-21 16:05:54 +02:00
|
|
|
|
2009-08-15 20:29:21 +02:00
|
|
|
override_dh_auto_configure:
|
2009-08-17 05:12:28 +02:00
|
|
|
sh autogen.sh
|
2009-08-21 03:52:18 +02:00
|
|
|
./configure --with-synthesis-src=none --prefix=/usr --sysconfdir=/etc \
|
2010-09-09 16:38:18 +02:00
|
|
|
--libexecdir=/usr/lib/syncevolution --enable-gui \
|
2011-05-29 13:20:14 +02:00
|
|
|
--with-rst2man --with-rst2html --with-dav
|
2009-08-16 01:06:50 +02:00
|
|
|
|
2010-03-07 12:53:46 +01:00
|
|
|
override_dh_install:
|
|
|
|
dh_install -X"*.pl"
|
|
|
|
|
2010-06-12 21:15:15 +02:00
|
|
|
override_dh_strip:
|
|
|
|
dh_strip --dbg-package=syncevolution-dbg
|
|
|
|
|
2009-08-16 01:06:50 +02:00
|
|
|
get-orig-source:
|
2009-08-21 03:52:18 +02:00
|
|
|
git archive --format=tar ${UPSTREAMTAG} | gzip -9 > ../${ORIG}
|
2011-03-07 17:38:30 +01:00
|
|
|
|
|
|
|
PATCH_EXPORT_SCRIPT=/usr/share/gitpkg/hooks/quilt-patches-deb-export-hook
|
|
|
|
export-patches:
|
|
|
|
[ ! -r debian/patches ] || \
|
|
|
|
grep "^\#*$(notdir $(PATCH_EXPORT_SCRIPT))" debian/patches/series
|
|
|
|
rm -rf debian/patches
|
|
|
|
sh $(PATCH_EXPORT_SCRIPT)
|