syncevolution/debian/rules

58 lines
1.7 KiB
Plaintext
Raw Normal View History

2009-08-04 13:45:06 +02:00
#!/usr/bin/make -f
# -*- makefile -*-
2016-11-15 12:33:09 +01:00
UPSTREAMTAG=upstream/1.5.2
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
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export CONFIG_SHELL=/bin/bash
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
2009-08-04 13:45:06 +02:00
%:
dh $@ --parallel
2009-08-21 16:05:54 +02:00
override_dh_auto_install:
make install DESTDIR=$(CURDIR)/debian/tmp
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
override_dh_auto_configure:
sh autogen.sh
dh_auto_configure -- --with-synthesis-src=none --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/$(DEB_HOST_MULTIARCH)/syncevolution \
--enable-gui \
--enable-kwallet --enable-akonadi \
--with-rst2man --with-rst2html --enable-dav \
--enable-oauth2
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 --dbgsym-migration='syncevolution-dbg'
2010-06-12 21:15:15 +02:00
override_dh_auto_clean:
rm -f INSTALL compile po/LINGUAS src/backends/backends.am \
src/synthesis-includes/Makefile.in test-driver
dh_auto_clean
override_dh_makeshlibs:
dh_makeshlibs -V'libsyncevolution0 (>= 1.5.2-3~)'
2009-08-16 01:06:50 +02:00
get-orig-source:
git archive --format=tar ${UPSTREAMTAG} --prefix=${SOURCEPKG}_${UPSTREAM}/ | 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
2011-05-29 16:07:09 +02:00
bash $(PATCH_EXPORT_SCRIPT)