diff options
-rw-r--r-- | libraries/goffice0.8/goffice0.8.SlackBuild | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/libraries/goffice0.8/goffice0.8.SlackBuild b/libraries/goffice0.8/goffice0.8.SlackBuild index 1d97fae58c..e7fa5532e8 100644 --- a/libraries/goffice0.8/goffice0.8.SlackBuild +++ b/libraries/goffice0.8/goffice0.8.SlackBuild @@ -24,11 +24,14 @@ # (INCLUDING NEGLIGENCE OR 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: +# - fix broken symlink to html docs. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=goffice0.8 VERSION=${VERSION:-0.8.17} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -42,9 +45,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 @@ -79,9 +79,9 @@ cd $SRCNAM-$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 {} \+ # https://bugzilla.gnome.org/show_bug.cgi?id=670316 patch -p1 < $CWD/disable-linking-pcre.patch @@ -103,15 +103,16 @@ CXXFLAGS="$SLKCFLAGS" \ # https://mail.gnome.org/archives/commits-list/2011-November/msg05571.html cp $CWD/go-conf-gsettings.c goffice/app/ -make CFLAGS="${CFLAGS} -Wno-error=format-nonliteral" +make CFLAGS="${CFLAGS} -Wno-error" make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS BUGS COPYING ChangeLog MAINTAINERS NEWS README \ $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -find $PKG/usr/doc -type f -exec chmod 0644 {} \; -ln -s /usr/share/gtk-doc/html/goffice $PKG/usr/doc/$PRGNAM-$VERSION/html +find $PKG/usr/doc -type f -exec chmod 0644 {} \+ +ln -s ../../share/gtk-doc/html/goffice-$( echo $VERSION | cut -d. -f1-2 ) \ + $PKG/usr/doc/$PRGNAM-$VERSION/html rm -f $PKG/usr/lib*/*.la |