summaryrefslogtreecommitdiff
path: root/office/scribus/scribus.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/scribus/scribus.SlackBuild')
-rw-r--r--office/scribus/scribus.SlackBuild28
1 files changed, 11 insertions, 17 deletions
diff --git a/office/scribus/scribus.SlackBuild b/office/scribus/scribus.SlackBuild
index 56fbe311cd..25f5d1019f 100644
--- a/office/scribus/scribus.SlackBuild
+++ b/office/scribus/scribus.SlackBuild
@@ -23,12 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by the SlackBuilds.org project
-# Including input by Yalla-One and some code cleanup by robw810
+# Including input by Yalla-One and some code cleanup by rworkman
set -e
PRGNAM=scribus
-VERSION=1.3.3.8
+VERSION=1.3.3.9
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,7 +55,7 @@ chmod -R a-s,u+w,go+r-w .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/opt/kde \
+ --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-cairo
@@ -63,23 +63,17 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
-# Install .desktop file, icon, and mime information
-install -m 0644 -D scribus.desktop $PKG/opt/kde/share/applications/kde/scribus.desktop
-install -m 0644 -D scribus/icons/scribusicon.png $PKG/opt/kde/share/icons/scribusicon.png
+# Install .desktop file and mime information
+install -m 0644 -D scribus.desktop $PKG/usr/share/applications/kde/scribus.desktop
install -m 0644 -D scribus.xml $PKG/usr/share/mime/packages/scribus.xml
-if [ -d $PKG/opt/kde/man ]; then
- ( cd $PKG/opt/kde/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
- )
-fi
-
-mkdir -p $PKG/usr/doc
-( cd $PKG/usr/doc
- ln -s ../../opt/kde/share/doc/$PRGNAM-$VERSION $PRGNAM-$VERSION
+mv $PKG/usr/share/man $PKG/usr
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/share/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc