hyprland/rules

35 lines
1.2 KiB
Makefile
Executable File

#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1
%:
dh $@
override_dh_auto_build:
dh_auto_build -- PREFIX=/usr
override_dh_makeshlibs:
:
override_dh_auto_install:
chrpath -r /usr/lib/hyprland build/Hyprland
# dh_auto_install auto detects the correct DESTDIR.
# Modify PREFIX so that this DESTDIR is actually taken into account.
# (Upstream Makefile supports PREFIX, but not DESTDIR)
dh_auto_install -- PREFIX='$${DESTDIR}/usr'
override_dh_clean:
dh_clean
# call clear target provided by Hyprland
make clear
# clean up some directories created during the build
rm -rf subprojects/wlroots/src/wlroots-stamp
rm -f subprojects/udis86/libudis86/itab*
rm -rf subprojects/wlroots/tmp
# Hyprland made this change. Revert it or dpkg-source will complain that
# meson.build does not match the one in the original source tarball
sed -E -i -e 's/soversion = 13032/soversion = 13/g' subprojects/wlroots/meson.build
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)"