42 lines
1.9 KiB
Makefile
Executable File
42 lines
1.9 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
include /usr/share/dpkg/buildopts.mk
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
export PATH := /opt/plasma-build/rust-1.88.0/bin:/opt/plasma/bin:$(PATH)
|
|
export CARGO_HOME = $(CURDIR)/debian/cargo-home
|
|
export CARGO_NET_OFFLINE = true
|
|
export RUSTC = /opt/plasma-build/rust-1.88.0/bin/rustc
|
|
export CARGO = /opt/plasma-build/rust-1.88.0/bin/cargo
|
|
export CMAKE_PREFIX_PATH = /opt/plasma
|
|
export PKG_CONFIG_PATH = /opt/plasma/lib/pkgconfig:/opt/plasma/share/pkgconfig
|
|
export XDG_DATA_DIRS = /opt/plasma/share:/usr/local/share:/usr/share
|
|
|
|
%:
|
|
dh $@ --buildsystem=cmake+ninja --builddirectory=obj-module
|
|
|
|
override_dh_auto_configure:
|
|
cmake -G Ninja -S . -B obj-module -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/opt/plasma -DCMAKE_PREFIX_PATH=/opt/plasma -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_RPATH=/opt/plasma/lib -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins -DKDE_INSTALL_QMLDIR=lib/qt6/qml -DKDE_INSTALL_LIBEXECDIR=libexec -DKDE_INSTALL_SYSCONFDIR=etc -DKDE_INSTALL_SYSTEMDUNITDIR=lib/systemd -DKDE_INSTALL_SYSTEMDUSERUNITDIR=lib/systemd/user -DBUILD_TESTING=OFF -DBUILD_QCH=OFF -DBUILD_DOC=OFF -DBUILD_PYTHON_BINDINGS=OFF
|
|
|
|
override_dh_auto_build:
|
|
ninja -C obj-module -j$(or $(DEB_BUILD_OPTION_PARALLEL),1)
|
|
|
|
override_dh_auto_test:
|
|
@echo 'Upstream tests disabled as in the frozen trial; consumer checks omitted.'
|
|
|
|
override_dh_auto_install:
|
|
DESTDIR=$(CURDIR)/debian/tmp cmake --install obj-module
|
|
python3 debian/normalize-permissions.py
|
|
python3 debian/split.py
|
|
|
|
override_dh_installdocs:
|
|
dh_installdocs
|
|
python3 debian/install-notices.py
|
|
|
|
override_dh_missing:
|
|
dh_missing --fail-missing
|
|
|
|
override_dh_makeshlibs:
|
|
dh_makeshlibs -V --no-scripts
|
|
|
|
override_dh_shlibdeps:
|
|
dh_shlibdeps -l$(CURDIR)/debian/plasma-next-kscreen/opt/plasma/lib
|