summaryrefslogtreecommitdiff
path: root/network/fdm/fdm.SlackBuild
diff options
context:
space:
mode:
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