From d69028811168853efdaad3f07f70dff93fccd112 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 12 Jul 2021 13:32:27 +0200 Subject: Remove COPYLIST boilerplate from every module; move to setup_target --- core/modules/dunst/module.build | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'core/modules/dunst') diff --git a/core/modules/dunst/module.build b/core/modules/dunst/module.build index 16e0bb5b..d09204e5 100644 --- a/core/modules/dunst/module.build +++ b/core/modules/dunst/module.build @@ -5,18 +5,14 @@ fetch_source() { } build() { - COPYLIST="list_dpkg_output" - [ -e "$COPYLIST" ] && rm "$COPYLIST" - - list_packet_files >> "$COPYLIST" - tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" - # copy udev rules to correct location - [ -d "${MODULE_BUILD_DIR}/lib/udev" ] && mv "${MODULE_BUILD_DIR}/lib/udev" "${MODULE_BUILD_DIR}/usr/lib/" + if [ -d "${TARGET_BUILD_DIR}/usr/lib/udev" ] && [ -d "${MODULE_BUILD_DIR}/lib/udev" ]; then + mv "${MODULE_BUILD_DIR}/lib/udev" "${MODULE_BUILD_DIR}/usr/lib/" + fi } post_copy() { mkdir -p "${TARGET_BUILD_DIR}/etc/X11" - [ ! -e ${TARGET_BUILD_DIR}/etc/X11/X ] && ln -s /usr/bin/Xorg ${TARGET_BUILD_DIR}/etc/X11/X + [ ! -e ${TARGET_BUILD_DIR}/etc/X11/X ] && ln -s /usr/bin/Xorg ${TARGET_BUILD_DIR}/etc/X11/X } -- cgit v1.2.3-55-g7522