From 959d20193625649bbd766a9d8eef2032ebe14a9c Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Mon, 5 Sep 2022 21:44:00 +0100 Subject: [PATCH] Handle douninst.sh. --- templates/douninst.sh | 0 templates/template.SlackBuild | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 templates/douninst.sh diff --git a/templates/douninst.sh b/templates/douninst.sh new file mode 100644 index 0000000..e69de29 diff --git a/templates/template.SlackBuild b/templates/template.SlackBuild index 9490dfa..5d36b5a 100755 --- a/templates/template.SlackBuild +++ b/templates/template.SlackBuild @@ -297,7 +297,7 @@ done # Copy pkgtool special files into the package. mkdir -m 755 "$BUILD_ROOT/install" || die "Failed to make /install directory" -for FILE in doinst.sh slack-{conflicts,desc,required,suggests}; do +for FILE in doinst.sh douninst.sh slack-{conflicts,desc,required,suggests}; do [[ -e "$SRC_DIR/$FILE" ]] && { sed -r -e '/(^#|^$|-handy-ruler-)/ d' "${SED_OPTS[@]}" <"$SRC_DIR/$FILE" >"$BUILD_ROOT/install/$FILE" || \ die "Failed to copy in pkgtool special file: $FILE"