LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File debian.rules of Package kf5-gpgmepp (Project home:jkt-gentoo:trojita)

#!/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

DEB_HOST_MULTIARCH = $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

CXXFLAGS += $(CPPFLAGS)

%:
	dh $@

override_dh_auto_configure:
	sed -i 's:^set(QT_MIN_VERSION "5.4.0")$$:set(QT_MIN_VERSION "5.2.0"):' CMakeLists.txt
	dh_auto_configure -- \
	    -DCMAKE_INSTALL_PREFIX=/usr \
	    -DCMAKE_VERBOSE_MAKEFILE=ON \
	    -DCMAKE_BUILD_TYPE=None \
	    -DCMAKE_INSTALL_SYSCONFDIR=/etc \
	    -DCMAKE_INSTALL_LOCALSTATEDIR=/var \
	    -DCMAKE_BUILD_TYPE=Debian \
	    -DCMAKE_USE_RELATIVE_PATHS=ON \
	    -DCMAKE_INSTALL_SYSCONFDIR=/etc \
	    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON

override_dh_auto_install:
	echo "usr/include" >> debian/libkf5gpgmepp-dev.install
	echo "usr/lib/*/qt5/mkspecs" >> debian/libkf5gpgmepp-dev.install
	echo "usr/lib/*/cmake" >> debian/libkf5gpgmepp-dev.install
	echo "usr/lib/*/*.so" >> debian/libkf5gpgmepp-dev.install
	echo "usr/lib/*/libKF5Gpgmepp.so.*" > debian/libkf5gpgmepp5.install
	echo "usr/lib/*/libKF5Gpgmepp-pthread.so.*" > debian/libkf5gpgmepp-pthread5.install
	echo "usr/lib/*/libKF5QGpgme.so.*" > debian/libkf5qgpgme5.install
	dh_auto_install