aboutsummaryrefslogtreecommitdiffstats
path: root/misc/kdehier4/files/make-plist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'misc/kdehier4/files/make-plist.sh')
-rw-r--r--misc/kdehier4/files/make-plist.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/misc/kdehier4/files/make-plist.sh b/misc/kdehier4/files/make-plist.sh
index 53774f84b4d..2a054325efc 100644
--- a/misc/kdehier4/files/make-plist.sh
+++ b/misc/kdehier4/files/make-plist.sh
@@ -5,11 +5,20 @@ if [ ! -e dirlist -o ! -e ../Makefile ]; then
exit 1
fi
+
+echo "%%MTREE%%%%LDCONFIG_DIR%%
+%%MTREE%%%%LDCONFIG32_DIR%%
+%%MTREE%%libdata/pkgconfig" > ../pkg-plist
+
(
-grep -v "^@comment" dirlist | sed -e "s,$,/.keep_me," ;
-grep -v "^@comment" mtree-dirlist | sed -e "s,$,/.keep_me,; s,^,%%MTREE%%,"
-)| sort | uniq > ../pkg-plist
+grep -v "^@comment" dirlist | sed -e "s,^,@exec mkdir -p %D/," ;
+grep -v "^@comment" mtree-dirlist | sed -e "s,^,%%MTREE%%@exec mkdir -p %D/,"
+)| sort | uniq >> ../pkg-plist
+
(
grep -v "^@comment" dirlist | sed -e "s,^,@dirrmtry ," ;
grep -v "^@comment" mtree-dirlist | sed -e "s,^,%%MTREE%%@dirrm ,"
)| sort -r | uniq >> ../pkg-plist
+
+echo "%%MTREE%%@exec echo %D/lib > %%LOCALBASE%%/%%LDCONFIG_DIR%%/kdehier4
+%%MTREE%%@unexec [ -f %%LOCALBASE%%/%%LDCONFIG_DIR%%/kdehier4 ] && rm -f %%LOCALBASE%%/%%LDCONFIG_DIR%%/kdehier4 || true" >> ../pkg-plist