From aa27c454ea76eb2fe945edab437c735710290497 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 12 Mar 2021 21:37:11 +0300 Subject: cpt: add new package at 5.1.2 [TESTING] --- testing/cpt/post-install | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 testing/cpt/post-install (limited to 'testing/cpt/post-install') diff --git a/testing/cpt/post-install b/testing/cpt/post-install new file mode 100755 index 00000000..7f98b4d9 --- /dev/null +++ b/testing/cpt/post-install @@ -0,0 +1,13 @@ +#!/bin/sh + +grep -q '\.la$' "$CPT_ROOT/var/db/cpt/installed/"*/manifest || exit 0 + +find "$CPT_ROOT/usr/lib" \ + ! -type d \ + -name '*.la' \ + -exec rm -f -- {} + + +find "$CPT_ROOT/var/db/cpt/installed" \ + ! -type d \ + -name manifest \ + -exec sed -i '/.*\.la$/d' {} + -- cgit v1.2.3