summaryrefslogtreecommitdiff
path: root/network/fdm/fdm.SlackBuild
diff options
context:
space:
mode:
authorGrigorios Bouzakis <grbzks@gmail.com>2010-05-12 17:43:16 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:43:16 +0200
commit99b9faed094a6d0fd0e27a47097bbf73e3deda11 (patch)
tree123cc5091a5943ccb55767e25fd4e92f58682955 /network/fdm/fdm.SlackBuild
parent34e040656ad3513e5cf8c4143ae0a6ce83368c6b (diff)
downloadslackbuilds-99b9faed094a6d0fd0e27a47097bbf73e3deda11.tar.gz
network/fdm: Updated for version 1.6
Diffstat (limited to 'network/fdm/fdm.SlackBuild')
-rw-r--r--network/fdm/fdm.SlackBuild22
1 files changed, 14 insertions, 8 deletions
diff --git a/network/fdm/fdm.SlackBuild b/network/fdm/fdm.SlackBuild
index 5692214cee..08041e8d25 100644
--- a/network/fdm/fdm.SlackBuild
+++ b/network/fdm/fdm.SlackBuild
@@ -5,7 +5,7 @@
# Written by Grigorios Bouzakis (grbzks@gmail.com)
PRGNAM=fdm
-VERSION=${VERSION:-1.5}
+VERSION=${VERSION:-1.6}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -23,8 +23,6 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
-DOCS="CHANGES MANUAL README TODO examples"
-
set -e
rm -rf $PKG
@@ -40,10 +38,16 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-make
-make PREFIX=$PKG/usr install
+# Fix up the Makefiles to not explicity declare owner and group when installing
+patch -p1 < $CWD/fix_Makefiles.patch
+
+make \
+ PREFIX=/usr \
+ CFLAGS+="$SLKCFLAGS" \
+ CXXFLAGS+="$SLKCFLAGS"
+make install \
+ PREFIX=/usr \
+ DESTDIR=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -56,7 +60,9 @@ make PREFIX=$PKG/usr install
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGES MANUAL README TODO examples \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install