File debian.rules of Package owncloud-client

#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

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

export DROOT=$(CURDIR)/debian/owncloud-client
export SRCDIR=/usr/src/packages/SOURCES
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)


	dh $@

	# not sure, when which variables are set.
	echo source:Version=${source:Version}
	echo source:Upstream-Version=${source:Upstream-Version}
	echo binary:Version=${binary:Version}

	# protect against poisonous tar-balls.
	if [ -d binary ]; then ls -la; echo; echo "A top level directory named 'binary' exists. This kills dpkg-genchangelog."; echo; echo "Please remove that directory."; echo; echo; exit 1; fi

	git_defs=(); \
	if [ -n "%nil" -a "%nil" != "%nil" ]; then \
	fi; \

	# survive at Ubuntu_16.04
	mkdir -p $(CURDIR)/usr/share/owncloud/i18n
	echo 3cb86418caef9c95cd211cbf60a1bddd88000000020101 | xxd -r -p > $(CURDIR)/usr/share/owncloud/i18n/client_en.qm
	dh_auto_install -Xdebian
	install -m 0755 -D $(SRCDIR)/100-sync-inotify.conf $(DROOT)/etc/sysctl.d/100-sync-inotify.conf
	if [ -f $(SRCDIR)/ ]; then cd $(CURDIR)/usr/share/owncloud ; unzip -o $(SRCDIR)/; fi || true

	find $(CURDIR) -name \*/man/man1/\*.1 | tee | xargs rm -f

openSUSE Build Service is sponsored by