git: 44e610156396 - main - games/libretro-shaders-slang: replace RM with find arguments "! -name" for COPYTREE_SHARE

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sat, 10 Aug 2024 15:43:33 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=44e6101563969c83b1cabc0f3a92045fcf26c3ec

commit 44e6101563969c83b1cabc0f3a92045fcf26c3ec
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-08-10 15:36:57 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-08-10 15:43:27 +0000

    games/libretro-shaders-slang: replace RM with find arguments "! -name" for COPYTREE_SHARE
    
    PR:             280700
    Reported by:    jhale (via IRC)
    Approved by:    Stefan Schlosser <bsdcode@disroot.org> (maintainer)
    Fixes:          20dee3ad45ea (update g20240719 → g20240804)
---
 games/libretro-shaders-slang/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/games/libretro-shaders-slang/Makefile b/games/libretro-shaders-slang/Makefile
index 55dc1758d44c..8bf4399a8cb7 100644
--- a/games/libretro-shaders-slang/Makefile
+++ b/games/libretro-shaders-slang/Makefile
@@ -16,15 +16,15 @@ GH_PROJECT=	slang-shaders
 GH_TAGNAME=	b327343
 
 DATADIR=	${PREFIX}/share/libretro/shaders/shaders_slang
+NO_ARCH=	yes
 
 OPTIONS_DEFINE=	DOCS
 
 do-install:
 	${MKDIR} ${STAGEDIR}${DATADIR}
-	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
-.for _FILE in .gitlab-ci.yml Makefile README.md configure
-	${RM} ${STAGEDIR}${DATADIR}/${_FILE}
-.endfor
+	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} \
+		"! -name .gitlab-ci.yml -a ! -name Makefile \
+		-a ! -regex ^./README.md -a ! -name configure"
 
 post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}