File debian.rules of Package ocqt5125-sqlite3

#!/usr/bin/make -f

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

export PATH := /opt/ownCloud/qt-5.12.5/lib/$(DEB_HOST_MULTIARCH)/qt5/bin:$(PATH)
export LD_LIBRARY_PATH := /opt/ownCloud/qt-5.12.5/lib/$(DEB_HOST_MULTIARCH):$(LD_LIBRARY_PATH)

# Prefixed packages. All the meta files need to be renamed accordingly.
# CAUTION: Keep in sync with the Binary: list in the *.dsc.in file.
pkgs_oc_pkg_prefix = libsqlite3-0
lintian_overrides = dir-or-file-in-opt package-name-doesnt-match-sonames debian-changelog-line-too-long syntax-error-in-debian-changelog latest-debian-changelog-entry-without-new-version no-copyright-file debian-revision-should-not-be-zero no-debian-copyright

%:
	dh $@ --buildsystem=autoconf

override_dh_auto_configure:
	export CFLAGS="-DSQLITE_ENABLE_API_ARMOR -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_HIDDEN_COLUMNS -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT -DSQLITE_SOUNDEX -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
	dh_auto_configure -- \
		--disable-static --disable-static-shell --enable-readline --enable-fts3 --enable-fts4 --enable-fts5 --enable-json1 \
		--enable-update-limit --enable-rtree --prefix=/opt/ownCloud/qt-5.12.5 \
		--datadir=/opt/ownCloud/qt-5.12.5/share --libdir=/opt/ownCloud/qt-5.12.5/lib/$(DEB_HOST_MULTIARCH)
	# tests failed: oserror-1.1.1 oserror-1.1.2 oserror-1.1.3
	rm -f test/oserror.test

override_dh_auto_install:

	ls -la debian/

	dh_auto_install
	dh_install --list-missing

override_dh_shlibdeps:
	dh_shlibdeps -O--parallel -l"/opt/ownCloud/qt-5.12.5/lib/$(DEB_HOST_MULTIARCH)"
openSUSE Build Service is sponsored by