summaryrefslogtreecommitdiff
path: root/office/pdfedit/pdfedit.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/pdfedit/pdfedit.SlackBuild')
-rw-r--r--office/pdfedit/pdfedit.SlackBuild84
1 files changed, 84 insertions, 0 deletions
diff --git a/office/pdfedit/pdfedit.SlackBuild b/office/pdfedit/pdfedit.SlackBuild
new file mode 100644
index 0000000000..afedf31c94
--- /dev/null
+++ b/office/pdfedit/pdfedit.SlackBuild
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+# Slackware build script for PDFedit
+# written by <pedro@gepasi.org> and hereby put in the public domain
+
+PRGNAM=pdfedit
+VERSION=0.4.3
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+# Add a good path for docbook.xsl
+printf "/usr/share/xml/docbook/xsl-stylesheets-1.75.1/html\n" >> \
+ doc/tools/docbook_xslt_paths
+
+ARCH="" \
+C_EXTRA="$SLKCFLAGS" \
+CXX_EXTRA="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --enable-stack-protector \
+ --enable-release \
+ --enable-gui \
+ --disable-kernel-tests \
+ --disable-advanced-doc \
+ --enable-user-manual \
+ --enable-doxygen-doc \
+ --enable-pdfedit-core-dev \
+ --with-parallel-make=auto \
+ --with-root-dir=$PKG \
+ --with-qmake=/opt/kde3/bin/qmake
+
+make install
+
+( 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
+)
+
+mkdir -p $PKG/usr/share/applications
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}