diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-27 05:16:47 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:41:58 +0700 |
commit | 947fe771ccc02af67138e8c82eba2a04e94d0b72 (patch) | |
tree | 53e09e550f4ff260a0dd0e620f32c4affb831244 /development | |
parent | a36f2ab091658c8d3ba6eb7664bb520848b63109 (diff) |
development/source-highlight: No static lib, no INSTALL, add doinst.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/source-highlight/source-highlight.SlackBuild | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/development/source-highlight/source-highlight.SlackBuild b/development/source-highlight/source-highlight.SlackBuild index 6e7602e0be7c5..7e7b3c842156c 100644 --- a/development/source-highlight/source-highlight.SlackBuild +++ b/development/source-highlight/source-highlight.SlackBuild @@ -2,11 +2,16 @@ # Slackware build script for source-highlight # Written by powtrix (@gmail.com) +# 20230627 bkw: Modified by SlackBuilds.org, BUILD=3: +# - remove static library (nothing depended on it anyway). +# - remove generic INSTALL instructions from doc dir. +# - add doinst/douninst to handle /usr/info/dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=source-highlight VERSION=${VERSION:-3.1.9} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -18,9 +23,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -55,9 +57,9 @@ 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 {} + # thanks archlinux! patch -p1 < $CWD/gcc11.patch @@ -71,30 +73,28 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --enable-shared \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG - -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/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ); do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +make install-strip DESTDIR=$PKG +gzip -9 $PKG/usr/man/man*/* rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/*.info -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS COPYING CREDITS ChangeLog INSTALL NEWS README THANKS TODO.txt \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +rm -f $PKGDOC/INSTALL +cp -a AUTHORS $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/doinst.sh > $PKG/install/douninst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |