summaryrefslogtreecommitdiffstats
path: root/office/pstoedit/pstoedit.SlackBuild
diff options
context:
space:
mode:
author Pedro Mendes2014-06-06 01:41:36 +0200
committer Willy Sudiarto Raharjo2014-06-12 01:51:37 +0200
commit3ed2cce3ada4a54128f6b6a56083bad2c9f3896f (patch)
treeed0c833b53bf65d4affb9560be897f2ee394d36f /office/pstoedit/pstoedit.SlackBuild
parenta968a4d715ec58d970aae4d9428c602ab70dd102 (diff)
downloadold.slackbuilds-3ed2cce3ada4a54128f6b6a56083bad2c9f3896f.tar.gz
office/pstoedit: Updated for version 3.62.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/pstoedit/pstoedit.SlackBuild')
-rw-r--r--office/pstoedit/pstoedit.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/office/pstoedit/pstoedit.SlackBuild b/office/pstoedit/pstoedit.SlackBuild
index 5281fa4a96..df6ff2e8cc 100644
--- a/office/pstoedit/pstoedit.SlackBuild
+++ b/office/pstoedit/pstoedit.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pstoedit
-VERSION=3.50
+VERSION=${VERSION:-3.62}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -65,7 +65,7 @@ cd $PRGNAM-$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 {} \;
@@ -79,20 +79,18 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
-# Fix a superfulous include in drvswf.cpp which causes error
-patch -p0 < $CWD/drvswf.cpp.patch
-
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
-( cd $PKG/usr/man || exit 1
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+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
+# copy the example directory which is not installed...
+mkdir -p $PKG/usr/share/$PRGNAM-$VERSION/examples
+cp -a $TMP/$PRGNAM-$VERSION/examples/*.ps $PKG/usr/share/$PRGNAM-$VERSION/examples
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a readme.install $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild