diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-19 18:21:23 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-19 18:21:23 -0400 |
commit | 61d6bea8c35ef90b3155d3d289d2e9e02c289ebe (patch) | |
tree | fd59dc634f835d3f55793f0d32bf516b61b83020 /libraries/vdk/vdk.SlackBuild | |
parent | eae1304b341852c6637773a3ce249b71e7555602 (diff) | |
download | slackbuilds-61d6bea8c35ef90b3155d3d289d2e9e02c289ebe.tar.gz slackbuilds-61d6bea8c35ef90b3155d3d289d2e9e02c289ebe.tar.xz |
libraries/vdk: Fix man page.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | libraries/vdk/vdk.SlackBuild | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/libraries/vdk/vdk.SlackBuild b/libraries/vdk/vdk.SlackBuild index 9ecc18cc19..79a331d644 100644 --- a/libraries/vdk/vdk.SlackBuild +++ b/libraries/vdk/vdk.SlackBuild @@ -22,11 +22,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220419 bkw: Modified by SlackBuilds.org, BUILD=3: +# - install an actual man page in /usr/man. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=vdk VERSION=${VERSION:-2.5.1} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +41,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 @@ -75,9 +75,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 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -89,17 +89,22 @@ CXXFLAGS="$SLKCFLAGS" \ --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 +make install-strip DESTDIR=$PKG -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 +# 20220419 bkw: the "man page" isn't actually a man page. replace it +# with the one from Debian and modified slightly. +rm -f $PKG/usr/man/man1/vdk-config-2.1 +sed "s,@VERSION@,$VERSION," < $CWD/vdk-config-2.1 | \ + gzip -9c > $PKG/usr/man/man1/vdk-config-2.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO \ +cp -a AUTHORS BUGS COPYING ChangeLog NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION + +# 20220419 bkw: include the text file that would have gotten installed +# in /usr/man/man1. +cp -a doc/vdk-config-2.1 $PKG/usr/doc/$PRGNAM-$VERSION/vdk-config-2.txt + cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la |