summaryrefslogtreecommitdiff
path: root/development/xmlcopyeditor/xmlcopyeditor.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-05-13 00:25:46 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:25:46 +0200
commit5c0a57aa6250fb742921d61633f9a99592da6942 (patch)
treefb208ae9d47e9bb86903a31333a2e2becae2dc26 /development/xmlcopyeditor/xmlcopyeditor.SlackBuild
parent376ee74532daa4c8b06f24eb4d4829f56151fe1c (diff)
downloadslackbuilds-5c0a57aa6250fb742921d61633f9a99592da6942.tar.gz
development/xmlcopyeditor: Updated for version 1.2.0.6
Diffstat (limited to 'development/xmlcopyeditor/xmlcopyeditor.SlackBuild')
-rw-r--r--development/xmlcopyeditor/xmlcopyeditor.SlackBuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/development/xmlcopyeditor/xmlcopyeditor.SlackBuild b/development/xmlcopyeditor/xmlcopyeditor.SlackBuild
index 40e8db418d..7b351541ee 100644
--- a/development/xmlcopyeditor/xmlcopyeditor.SlackBuild
+++ b/development/xmlcopyeditor/xmlcopyeditor.SlackBuild
@@ -5,7 +5,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=xmlcopyeditor
-VERSION=${VERSION:-1.2.0.4}
+VERSION=${VERSION:-1.2.0.6}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -32,7 +32,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION-2.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -43,6 +43,7 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
+CPPFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -55,15 +56,19 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install-strip DESTDIR=$PKG
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS INSTALL \
$PKG/usr/doc/$PRGNAM-$VERSION
-# xmlcopyeditor decided to package every license under the sun.
-# So I guess we'll package them too.
-mv $PKG/usr/share/$PRGNAM/copying $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -71,4 +76,4 @@ 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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}