From 830a31bbbbd8b42ef562fe225f8620e906887806 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 6 Apr 2022 11:07:05 -0400 Subject: development/cppcheck: Add doinst, fix translations. Signed-off-by: B. Watson --- development/cppcheck/cppcheck.SlackBuild | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'development/cppcheck/cppcheck.SlackBuild') diff --git a/development/cppcheck/cppcheck.SlackBuild b/development/cppcheck/cppcheck.SlackBuild index 4d38185149..8f973c165c 100644 --- a/development/cppcheck/cppcheck.SlackBuild +++ b/development/cppcheck/cppcheck.SlackBuild @@ -22,11 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220405 bkw: Modified by SlackBuilds.org, BUILD=2: +# - add doinst.sh, because we have icons and a .desktop. +# - install translations (*.qm) in usr/share/Cppcheck/lang/, not /usr/bin. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=cppcheck VERSION=${VERSION:-2.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -74,9 +78,14 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ + +# 20220406 bkw: these patches from Debian install the translations +# to the correct /usr/share directory instead of in /usr/bin. +patch -p1 < $CWD/fix-default-settings.diff +patch -p1 < $CWD/install-translations-in-filesdir-lang.diff mkdir -p build cd build @@ -97,11 +106,6 @@ cd .. rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ AUTHORS COPYING readme.{md,txt} \ @@ -110,6 +114,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE -- cgit v1.2.3-80-g2a13