diff options
Diffstat (limited to 'development/tktable/tktable.SlackBuild')
-rw-r--r-- | development/tktable/tktable.SlackBuild | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/development/tktable/tktable.SlackBuild b/development/tktable/tktable.SlackBuild index 00887e09126f7..22fc5589317ce 100644 --- a/development/tktable/tktable.SlackBuild +++ b/development/tktable/tktable.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=tktable -VERSION=${VERSION:-2.10} +VERSION=${VERSION:-2.10.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -67,8 +67,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/Tktable$VERSION.tar.gz -mv Tktable$VERSION $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -86,7 +85,6 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ - --disable-static \ --build=$ARCH-slackware-linux \ --enable-threads \ $WITH_64BIT_SUPPORT @@ -94,16 +92,16 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -# Remove unnessesary directory created during install +# fix naming issue to retain backward compatibility +sed -i '4s/tktable/Tktable/' $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}2.10/pkgIndex.tcl + +# Remove unnessesary directories created during install rmdir $PKG/usr/bin +rmdir $PKG/usr/include -# By default, man pages are not installed. Correct this -mkdir -p $PKG/usr/man/mann -cp doc/tkTable.n $PKG/usr/man/mann/tktable.n -chmod 0644 $PKG/usr/man/mann/tktable.n +# rename man page +( cd $PKG/usr/man/mann/; mv tkTable.n tktable.n ) -# Include demos -cp -r demos $PKG/usr/lib${LIBDIRSUFFIX}/Tktable${VERSION}/demos 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 @@ -111,14 +109,14 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr 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 +chmod 0664 demos/* +chmod 0664 release.txt ChangeLog README.txt +gzip -9 ChangeLog mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - README.blt README.txt TODO.txt license.txt \ - $PKG/usr/doc/$PRGNAM-$VERSION - -# move html documentation and other files to an appropriate location -mv $PKG/usr/lib${LIBDIRSUFFIX}/Tktable${VERSION}/*.txt $PKG/usr/doc/$PRGNAM-$VERSION -mv $PKG/usr/lib${LIBDIRSUFFIX}/Tktable${VERSION}/html $PKG/usr/doc/$PRGNAM-$VERSION + README.md README.blt README.txt TODO.txt license.txt \ + release.txt ChangeLog.gz demos \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |