Improve d/rules
- wlroots dependency is now statically built into the binary. Remove all special conditions that were written to take care of this. - Unapply patches applied to wlroots as part of clean target - Make dh_clean ignore scripts/generateVersion.sh.bak
This commit is contained in:
parent
ad9c24ebe7
commit
750153de67
|
|
@ -10,32 +10,36 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O2
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
dh_auto_build -- PREFIX=/usr all
|
dh_auto_build -- PREFIX=/usr all
|
||||||
|
|
||||||
# Ignore makeshlibs. Our included binary is a custom copy of wlroots
|
|
||||||
# that is installed into a private directory (/usr/lib/hyprland/).
|
|
||||||
override_dh_makeshlibs:
|
|
||||||
:
|
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
# chrpath -r /usr/lib/hyprland build/Hyprland
|
|
||||||
# Fix permission on hyprland.pc (Hyprland sets 777 on everything in
|
# Fix permission on hyprland.pc (Hyprland sets 777 on everything in
|
||||||
# build/ directory)
|
# build/ directory)
|
||||||
chmod 644 build/hyprland.pc
|
chmod 644 build/hyprland.pc
|
||||||
|
|
||||||
# dh_auto_install auto detects the correct DESTDIR.
|
# dh_auto_install auto detects the correct DESTDIR.
|
||||||
# Modify PREFIX so that this DESTDIR is actually taken into account.
|
# Modify PREFIX so that this DESTDIR is actually taken into account.
|
||||||
# (Upstream Makefile supports PREFIX, but not DESTDIR)
|
# (Upstream Makefile supports PREFIX, but not DESTDIR)
|
||||||
dh_auto_install -- PREFIX='$${DESTDIR}/usr'
|
dh_auto_install -- PREFIX='$${DESTDIR}/usr'
|
||||||
|
|
||||||
override_dh_clean:
|
override_dh_clean:
|
||||||
dh_clean
|
|
||||||
# call clear target provided by Hyprland
|
# call clear target provided by Hyprland
|
||||||
make clear
|
make clear
|
||||||
|
|
||||||
# clean up some directories created during the build
|
# clean up some directories created during the build
|
||||||
rm -rf subprojects/wlroots-hyprland/src/wlroots-hyprland-stamp
|
rm -rf subprojects/wlroots-hyprland/src/wlroots-hyprland-stamp
|
||||||
rm -f subprojects/udis86/libudis86/itab*
|
rm -f subprojects/udis86/libudis86/itab*
|
||||||
rm -rf subprojects/wlroots-hyprland/tmp
|
rm -rf subprojects/wlroots-hyprland/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
|
# Reverse the patches in subprojects/wlroots-hyprland
|
||||||
# sed -E -i -e 's/^soversion = .*/soversion = version_minor.to_int() - 5/g' subprojects/wlroots/meson.build
|
cd subprojects/wlroots-hyprland ; \
|
||||||
|
patches=$$(find patches/ -type f -name '*.patch') ; \
|
||||||
|
echo $$patches ; \
|
||||||
|
for PATCH in $$patches ; do \
|
||||||
|
patch -p1 -r /dev/null -N --dry-run -s < $$PATCH || patch -p1 -r /dev/null -R -s < $$PATCH ; \
|
||||||
|
done ;
|
||||||
|
|
||||||
|
# Do not delete scripts/generateVersion.sh.bak
|
||||||
|
dh_clean -X scripts/generateVersion.sh.bak
|
||||||
|
|
||||||
|
|
||||||
#override_dh_auto_configure:
|
#override_dh_auto_configure:
|
||||||
# dh_auto_configure -- \
|
# dh_auto_configure -- \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue