Browse Source

xap/inkscape: Upgraded to inscake-1.0.

current-20191101
parent
commit
499d778e22
  1. 1
      xap/inkscape/inkscape-0.92.4_A6N0YOn.tar.bz2.sha256
  2. 1
      xap/inkscape/inkscape-1.0.tar.xz.sha256
  3. 62
      xap/inkscape/inkscape.SlackBuild

1
xap/inkscape/inkscape-0.92.4_A6N0YOn.tar.bz2.sha256

@ -1 +0,0 @@
57ec2da8177b36614a513e2822efd73af721e690f7ddc6bd0a5fbb1525b4515e inkscape-0.92.4_A6N0YOn.tar.bz2

1
xap/inkscape/inkscape-1.0.tar.xz.sha256

@ -0,0 +1 @@
89c123d1a62ac52db6a08fe3be730584411b89a88ecc528a410b4f3fa53f94bb inkscape-1.0.tar.xz

62
xap/inkscape/inkscape.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008-2017,2019 Damien Goutte-Gattat
# Copyright (C) 2008-2017,2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -24,12 +24,14 @@
#
# Latest inkscape sourcecode is available at:
# <http://www.inkscape.org/>.
#
# Depends: ap/potrace, l/double-conversion, l/gdl
# Source package infos
NAMESRC=${NAMESRC:-inkscape}
VERSION=${VERSION:-0.92.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-${VERSION}_A6N0YOn.tar.bz2}
WGET=${WGET:-https://inkscape.org/gallery/item/13330/$ARCHIVE}
VERSION=${VERSION:-1.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-${VERSION}.tar.xz}
WGET=${WGET:-https://inkscape.org/gallery/item/18460/$ARCHIVE}
# Built package infos
NAMEPKG=${NAMEPKG:-inkscape}
@ -86,39 +88,45 @@ tar xf $CWD/$ARCHIVE
cd $NAME
# Compile
./autogen.sh
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--disable-static \
--enable-lcms \
--enable-poppler-cairo \
--enable-dbusapi \
--disable-strict-build \
--disable-dependency-tracking \
--build=$ARCH-slackware-linux
mkdir build && cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINKSCAPE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX/inkscape \
-DWITH_DBUS=ON \
..
make -j $JOBS
make install-strip DESTDIR=$PKG
make install/strip DESTDIR=$PKG
cd ..
# Yet another instance of CMake not allowing to override
# where the man pages are installed. FFS.
mv $PKG/usr/share/man $PKG/usr/man
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Ditto for the documentation files...
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/inkscape/doc $PKG/usr/doc/$NAMEPKG-$VERSION
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 AUTHORS COPYING ChangeLog GPL?.txt LGPL2.1.txt NEWS README \
TRANSLATORS doc/HACKING.txt doc/LOGGING.txt doc/README.document \
doc/architecture* doc/class-hierarchy.dia doc/coordinates.txt \
doc/extension_system.txt doc/keys.README doc/keys.en.html doc/keys.css \
doc/markers_design.txt doc/nr-filter-interface.txt doc/refcounting.txt \
doc/spsvgview.txt $PKG/usr/doc/$NAME
# Install the rest of the documentation
install -m 644 CONTRIBUTING.md NEWS.md README.md LICENSES/*.txt \
doc/README.document doc/architecture* doc/class-hierarchy.dia \
doc/coordinates.txt doc/extension_system.txt doc/markers_design.txt \
doc/nr-filter-interface.txt doc/refcounting.txt doc/spsvgview.txt \
$PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
double-conversion
gdl
potrace
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save